Skip to content

Commit

Permalink
vid_glswfb: Prevent defunct windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
svdijk authored and coelckers committed May 20, 2017
1 parent 4388d97 commit 371a875
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/posix/sdl/sdlglvideo.cpp
Expand Up @@ -255,7 +255,10 @@ DFrameBuffer *SDLGLVideo::CreateFrameBuffer (int width, int height, bool bgra, b
{
fb = (SDLBaseFB*)CreateGLSWFrameBuffer(width, height, bgra, fullscreen);
if (!fb->IsValid())
{
delete fb;
fb = new SDLFB(width, height, bgra, fullscreen, nullptr);
}
}

retry = 0;
Expand Down

0 comments on commit 371a875

Please sign in to comment.