mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
fix potential crash when running the software renderer (oops)
This commit is contained in:
@ -882,10 +882,12 @@ void GPU2D::VBlankEnd()
|
||||
OBJMosaicY = 0;
|
||||
OBJMosaicYMax = OBJMosaicSize[1];
|
||||
|
||||
// TODO: make optional
|
||||
if ((Num == 0) && (CaptureCnt & (1<<31)) && (((CaptureCnt >> 29) & 0x3) != 1))
|
||||
if (GPU3D::Renderer != 0)
|
||||
{
|
||||
GPU3D::GLRenderer::PrepareCaptureFrame();
|
||||
if ((Num == 0) && (CaptureCnt & (1<<31)) && (((CaptureCnt >> 29) & 0x3) != 1))
|
||||
{
|
||||
GPU3D::GLRenderer::PrepareCaptureFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user