gfx: Avoid graphical glitches after deinitialization

This commit is contained in:
fincs 2020-06-14 01:20:46 +02:00
parent bf55423903
commit bfc6ea48fb
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -167,6 +167,13 @@ void gfxExit(void)
if (screenFree == NULL)
return;
if (gspHasGpuRight())
{
// Wait for VBlank and turn the LCD off
gspWaitForVBlank();
GSPGPU_SetLcdForceBlack(0x1);
}
// Free framebuffers
screenFree(gfxTopFramebuffers[0]);
screenFree(gfxTopFramebuffers[1]);