mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
vid_glswfb: Prevent defunct windows.
This commit is contained in:
parent
4388d97db6
commit
371a8755c2
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue