gfx: Avoid graphical glitches after deinitialization
This commit is contained in:
parent
bf55423903
commit
bfc6ea48fb
@ -167,6 +167,13 @@ void gfxExit(void)
|
|||||||
if (screenFree == NULL)
|
if (screenFree == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (gspHasGpuRight())
|
||||||
|
{
|
||||||
|
// Wait for VBlank and turn the LCD off
|
||||||
|
gspWaitForVBlank();
|
||||||
|
GSPGPU_SetLcdForceBlack(0x1);
|
||||||
|
}
|
||||||
|
|
||||||
// Free framebuffers
|
// Free framebuffers
|
||||||
screenFree(gfxTopFramebuffers[0]);
|
screenFree(gfxTopFramebuffers[0]);
|
||||||
screenFree(gfxTopFramebuffers[1]);
|
screenFree(gfxTopFramebuffers[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user