wiiu/video: Call GX2SetTV/DRCEnable on leaving foreground

This fixes having a black background while the HBM is active.
This commit is contained in:
GaryOderNichts 2023-09-10 14:09:50 +02:00 committed by Dave Murphy
parent a4c061395b
commit cd53049e56
No known key found for this signature in database
GPG Key ID: F7FD5492264BB9D0

View File

@ -160,6 +160,11 @@ static int WIIU_ForegroundReleased(_THIS)
WIIU_GfxHeap_MEM1Destroy();
WIIU_GfxHeap_ForegroundDestroy();
// This is necessary to avoid a black frame on leaving foreground
GX2SetTVEnable(TRUE);
GX2SetDRCEnable(TRUE);
videodata->hasForeground = SDL_FALSE;
return 0;