From 3a78e73fb0e5e9b9303cfbb9d379067ba1d4c6d1 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Fri, 16 Jul 2021 21:16:55 +0200 Subject: [PATCH] srcB can be NULL fixes games which blend down display captures --- src/GPU2D_Deko.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GPU2D_Deko.cpp b/src/GPU2D_Deko.cpp index c8c698e27b..dd2e5a60c0 100644 --- a/src/GPU2D_Deko.cpp +++ b/src/GPU2D_Deko.cpp @@ -707,7 +707,7 @@ void DekoRenderer::DoCapture() u8* srcA = Gfx::DataHeap->CpuAddr(DisplayCaptureMemory); u32 srcBaddr; - u16* srcB; + u16* srcB = NULL; if (CaptureCnt & (1<<25)) { @@ -749,7 +749,7 @@ void DekoRenderer::DoCapture() source = 1; } - //printf("capturing %d %dx%d to %d (eva %d | evb %d) %p\n", source, width, height, dstvram, eva, evb, srcB); + //printf("capturing %d %dx%d to %d (eva %d | evb %d) %p %p\n", source, width, height, dstvram, eva, evb, srcA, srcB); switch (source) {