Skip to content

Commit

Permalink
Don't X error in SDL_CreateWindow with unsupported GL attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Oct 22, 2017
1 parent adc64f9 commit b89cac6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -463,7 +463,9 @@ X11_GL_InitExtensions(_THIS)
}
}

X11_XDestroyWindow(display, w);
if (w) {
X11_XDestroyWindow(display, w);
}
X11_PumpEvents(_this);
}

Expand Down

0 comments on commit b89cac6

Please sign in to comment.