Fixed SDL applications being killed immediately after being backgrounded, because they were trying to draw while minimized.
This commit is contained in:
parent
352caf548a
commit
c5b4e5f63e
4 changed files with 49 additions and 0 deletions
|
@ -169,6 +169,11 @@ GLES2_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
|
|||
/* Rebind the context to the window area */
|
||||
SDL_CurrentContext = NULL;
|
||||
}
|
||||
|
||||
if (event->event == SDL_WINDOWEVENT_MINIMIZED) {
|
||||
/* According to Apple documentation, we need to finish drawing NOW! */
|
||||
glFinish();
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue