vid_glswfb: Prevent defunct windows.

This commit is contained in:
svdijk 2017-05-20 21:50:52 +02:00 committed by Christoph Oelckers
parent 4388d97db6
commit 371a8755c2

View file

@ -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;