From 6f3e9913f5b78a71d8cd7da058bb41d823847415 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 25 Dec 2024 15:35:59 +1000 Subject: [PATCH] GPU/HW: Fix VRAM write dumping only first row Still has race conditions. --- src/core/gpu_hw_texture_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw_texture_cache.cpp b/src/core/gpu_hw_texture_cache.cpp index 94bcc2806..8dbf665ef 100644 --- a/src/core/gpu_hw_texture_cache.cpp +++ b/src/core/gpu_hw_texture_cache.cpp @@ -2699,7 +2699,7 @@ void GPUTextureCache::DumpVRAMWrite(u32 width, u32 height, const void* pixels) for (u32 y = 0; y < height; y++) { - u8* row_ptr = image.GetPixels(); + u8* row_ptr = image.GetRowPixels(y); for (u32 x = 0; x < width; x++) { const u32 pixel32 = VRAMRGBA5551ToRGBA8888(*(src_pixels++));