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 212a272 commit cf1d5d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/x11/SDL_x11opengl.c
Original file line number Diff line number Diff line change
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 cf1d5d3

Please sign in to comment.