Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

Don't try to create an OpenGL window if we can't load the OpenGL libr…

  • Loading branch information
slouken committed Oct 28, 2012
1 parent 0fe99b9 commit f543bba349ef2bf3b1b4744ffa5f69ab402ec7c4
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/video/SDL_video.c
@@ -1168,7 +1168,9 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
SDL_SetError("No OpenGL support in video driver");
return NULL;
if (SDL_GL_LoadLibrary(NULL) < 0) {
return NULL;
window = (SDL_Window *)SDL_calloc(1, sizeof(*window));
window->magic = &_this->window_magic;

0 comments on commit f543bba

Please sign in to comment.