Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/video/wiiu/SDL_wiiuvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <gx2/state.h>
#include <gx2r/mem.h>
#include <gx2r/surface.h>
#include <gx2/swap.h>

#define DRC_SCREEN_WIDTH 854
#define DRC_SCREEN_HEIGHT 480
Expand Down Expand Up @@ -107,6 +108,10 @@ static int WIIU_ForegroundAcquired(_THIS)
SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
}

if (GX2GetSwapInterval() == 0) {
GX2SetSwapInterval(0); /* Workaround for leaving foreground with a swap interval 0 */
}

while (window) {
SDL_Renderer* renderer = SDL_GetRenderer(window);

Expand Down