Skip to content

Commit b89207d

Browse files
committed
fix some bugs
1 parent 8fa96bd commit b89207d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/GPU_OpenGL.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void GLRenderer::RenderScreen(int ystart, int yend)
526526
int vramcap = -1;
527527
if (AuxUsageMask & (1<<0))
528528
{
529-
u32 vrambank = (GPU.GPU2D_A.DispCnt >> 18) & 0x3;
529+
u32 vrambank = (DispCntA >> 18) & 0x3;
530530
if (GPU.VRAMMap_LCDC & (1<<vrambank))
531531
vramcap = GPU.GetCaptureBlock_LCDC(vrambank << 17);
532532
}
@@ -571,7 +571,7 @@ void GLRenderer::RenderScreen(int ystart, int yend)
571571
glBindTexture(GL_TEXTURE_2D, OutputTex2D[1]);
572572

573573
glActiveTexture(GL_TEXTURE2);
574-
u32 modeA = (GPU.GPU2D_A.DispCnt >> 16) & 0x3;
574+
u32 modeA = (DispCntA >> 16) & 0x3;
575575
if ((modeA == 2) && (vramcap != -1))
576576
{
577577
glBindTexture(GL_TEXTURE_2D_ARRAY, CaptureOutput256Tex);
@@ -616,8 +616,8 @@ void GLRenderer::VBlankEnd()
616616

617617
void GLRenderer::DoCapture(int ystart, int yend)
618618
{
619-
u32 dispcnt = GPU.GPU2D_A.DispCnt;
620-
u32 capcnt = GPU.CaptureCnt;
619+
u32 dispcnt = DispCntA;
620+
u32 capcnt = CaptureCnt;
621621
u32 dispmode = (dispcnt >> 16) & 0x3;
622622
u32 srcA = (capcnt >> 24) & 0x1;
623623
u32 srcB = (capcnt >> 25) & 0x1;

0 commit comments

Comments
 (0)