Skip to content

Commit

Permalink
srcB can be NULL
Browse files Browse the repository at this point in the history
fixes games which blend down display captures
  • Loading branch information
RSDuck committed Jul 16, 2021
1 parent 8d56af7 commit 3a78e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GPU2D_Deko.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void DekoRenderer::DoCapture()
u8* srcA = Gfx::DataHeap->CpuAddr<u8>(DisplayCaptureMemory);

u32 srcBaddr;
u16* srcB;
u16* srcB = NULL;

if (CaptureCnt & (1<<25))
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 3a78e73

Please sign in to comment.