src/video/windows/SDL_windowsopengl.c
changeset 8735 2134fc16252b
parent 8604 459bd7365e9d
child 9413 eb50f63a5777
     1.1 --- a/src/video/windows/SDL_windowsopengl.c	Wed Apr 23 13:47:52 2014 -0700
     1.2 +++ b/src/video/windows/SDL_windowsopengl.c	Wed Apr 23 13:47:57 2014 -0700
     1.3 @@ -334,6 +334,10 @@
     1.4      HGLRC hglrc;
     1.5      PIXELFORMATDESCRIPTOR pfd;
     1.6  
     1.7 +    if (!_this->gl_data) {
     1.8 +        return;
     1.9 +    }
    1.10 +
    1.11      hwnd =
    1.12          CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0,
    1.13          10, 10, NULL, NULL, SDL_Instance, NULL);