diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 54819a59e..2f6a46f4f 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -947,7 +947,7 @@ GPU_HW::VRAMCopyUBOData GPU_HW::GetVRAMCopyUBOData(u32 src_x, u32 src_y, u32 dst return uniforms; } -void GPU_HW::IncludeVRAMDityRectangle(const Common::Rectangle& rect) +void GPU_HW::IncludeVRAMDirtyRectangle(const Common::Rectangle& rect) { m_vram_dirty_rect.Include(rect); @@ -1022,14 +1022,14 @@ void GPU_HW::ResetBatchVertexDepth() void GPU_HW::FillVRAM(u32 x, u32 y, u32 width, u32 height, u32 color) { - IncludeVRAMDityRectangle( + IncludeVRAMDirtyRectangle( Common::Rectangle::FromExtents(x, y, width, height).Clamped(0, 0, VRAM_WIDTH, VRAM_HEIGHT)); } void GPU_HW::UpdateVRAM(u32 x, u32 y, u32 width, u32 height, const void* data, bool set_mask, bool check_mask) { DebugAssert((x + width) <= VRAM_WIDTH && (y + height) <= VRAM_HEIGHT); - IncludeVRAMDityRectangle(Common::Rectangle::FromExtents(x, y, width, height)); + IncludeVRAMDirtyRectangle(Common::Rectangle::FromExtents(x, y, width, height)); if (check_mask) { @@ -1040,7 +1040,7 @@ void GPU_HW::UpdateVRAM(u32 x, u32 y, u32 width, u32 height, const void* data, b void GPU_HW::CopyVRAM(u32 src_x, u32 src_y, u32 dst_x, u32 dst_y, u32 width, u32 height) { - IncludeVRAMDityRectangle( + IncludeVRAMDirtyRectangle( Common::Rectangle::FromExtents(dst_x, dst_y, width, height).Clamped(0, 0, VRAM_WIDTH, VRAM_HEIGHT)); if (m_GPUSTAT.check_mask_before_draw) diff --git a/src/core/gpu_hw.h b/src/core/gpu_hw.h index 20b71bdc7..f28e2df47 100644 --- a/src/core/gpu_hw.h +++ b/src/core/gpu_hw.h @@ -194,7 +194,7 @@ protected: m_draw_mode.SetTexturePageChanged(); } void ClearVRAMDirtyRectangle() { m_vram_dirty_rect.SetInvalid(); } - void IncludeVRAMDityRectangle(const Common::Rectangle& rect); + void IncludeVRAMDirtyRectangle(const Common::Rectangle& rect); bool IsFlushed() const { return m_batch_current_vertex_ptr == m_batch_start_vertex_ptr; } diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index c8a46fa1f..da0e8b2fe 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -1037,7 +1037,7 @@ void GPU_HW_D3D11::CopyVRAM(u32 src_x, u32 src_y, u32 dst_x, u32 dst_y, u32 widt const Common::Rectangle dst_bounds = GetVRAMTransferBounds(dst_x, dst_y, width, height); if (m_vram_dirty_rect.Intersects(src_bounds)) UpdateVRAMReadTexture(); - IncludeVRAMDityRectangle(dst_bounds); + IncludeVRAMDirtyRectangle(dst_bounds); const VRAMCopyUBOData uniforms = GetVRAMCopyUBOData(src_x, src_y, dst_x, dst_y, width, height); diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index 779d3b423..7502f2cfe 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -1174,7 +1174,7 @@ void GPU_HW_OpenGL::CopyVRAM(u32 src_x, u32 src_y, u32 dst_x, u32 dst_y, u32 wid { if (src_dirty) UpdateVRAMReadTexture(); - IncludeVRAMDityRectangle(dst_bounds); + IncludeVRAMDirtyRectangle(dst_bounds); VRAMCopyUBOData uniforms = GetVRAMCopyUBOData(src_x, src_y, dst_x, dst_y, width, height); uniforms.u_src_y = m_vram_texture.GetHeight() - uniforms.u_src_y - uniforms.u_height; @@ -1243,7 +1243,7 @@ void GPU_HW_OpenGL::CopyVRAM(u32 src_x, u32 src_y, u32 dst_x, u32 dst_y, u32 wid glEnable(GL_SCISSOR_TEST); } - IncludeVRAMDityRectangle(dst_bounds); + IncludeVRAMDirtyRectangle(dst_bounds); } void GPU_HW_OpenGL::UpdateVRAMReadTexture() diff --git a/src/core/gpu_hw_vulkan.cpp b/src/core/gpu_hw_vulkan.cpp index 39c90f718..d58b5d845 100644 --- a/src/core/gpu_hw_vulkan.cpp +++ b/src/core/gpu_hw_vulkan.cpp @@ -1557,7 +1557,7 @@ void GPU_HW_Vulkan::CopyVRAM(u32 src_x, u32 src_y, u32 dst_x, u32 dst_y, u32 wid const Common::Rectangle dst_bounds = GetVRAMTransferBounds(dst_x, dst_y, width, height); if (m_vram_dirty_rect.Intersects(src_bounds)) UpdateVRAMReadTexture(); - IncludeVRAMDityRectangle(dst_bounds); + IncludeVRAMDirtyRectangle(dst_bounds); const VRAMCopyUBOData uniforms(GetVRAMCopyUBOData(src_x, src_y, dst_x, dst_y, width, height)); const Common::Rectangle dst_bounds_scaled(dst_bounds * m_resolution_scale);