Skip to content

Commit

Permalink
wiiu/video: Call GX2SetTV/DRCEnable on leaving foreground
Browse files Browse the repository at this point in the history
This fixes having a black background while the HBM is active.
  • Loading branch information
GaryOderNichts authored and WinterMute committed Oct 27, 2023
1 parent 0e5f053 commit 0b420eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/wiiu/SDL_wiiuvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b420eb

Please sign in to comment.