Fixed pointer from integer warning and bug if compiled without EGL.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 25 Dec 2013 16:57:59 +0100
changeset 8080bf767de0bcdc
parent 8079 f8ef325265ed
child 8081 402b8c313246
Fixed pointer from integer warning and bug if compiled without EGL.
src/video/windows/SDL_windowsopengl.c
     1.1 --- a/src/video/windows/SDL_windowsopengl.c	Wed Dec 25 16:53:39 2013 +0100
     1.2 +++ b/src/video/windows/SDL_windowsopengl.c	Wed Dec 25 16:57:59 2013 +0100
     1.3 @@ -604,8 +604,9 @@
     1.4          
     1.5          return WIN_GLES_CreateContext(_this, window);
     1.6  #else
     1.7 -        return SDL_SetError("SDL not configured with EGL support");
     1.8 -#endif        
     1.9 +        SDL_SetError("SDL not configured with EGL support");
    1.10 +        return NULL;
    1.11 +#endif
    1.12      }
    1.13  
    1.14      if (_this->gl_config.share_with_current_context) {