Don't X error in SDL_CreateWindow with unsupported GL attributes

Sven Hesse 2017-10-22 20:24:58 +02:00
parent adc64f922f
commit b89cac6761
1 changed files with 3 additions and 1 deletions

View File

@ -463,7 +463,9 @@ X11_GL_InitExtensions(_THIS)
}
}
X11_XDestroyWindow(display, w);
if (w) {
X11_XDestroyWindow(display, w);
}
X11_PumpEvents(_this);
}