src/video/windows/SDL_windowsopengl.c
changeset 8022 7396e3cc5337
parent 8021 f96e12e0ade9
child 8080 bf767de0bcdc
     1.1 --- a/src/video/windows/SDL_windowsopengl.c	Fri Nov 22 13:24:53 2013 -0300
     1.2 +++ b/src/video/windows/SDL_windowsopengl.c	Fri Nov 22 14:19:52 2013 -0300
     1.3 @@ -585,6 +585,7 @@
     1.4  
     1.5      if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES &&
     1.6          !_this->gl_data->HAS_WGL_EXT_create_context_es2_profile) {
     1.7 +#if SDL_VIDEO_OPENGL_EGL        
     1.8          /* Switch to EGL based functions */
     1.9          WIN_GL_UnloadLibrary(_this);
    1.10          _this->GL_LoadLibrary = WIN_GLES_LoadLibrary;
    1.11 @@ -602,6 +603,9 @@
    1.12          }
    1.13          
    1.14          return WIN_GLES_CreateContext(_this, window);
    1.15 +#else
    1.16 +        return SDL_SetError("SDL not configured with EGL support");
    1.17 +#endif        
    1.18      }
    1.19  
    1.20      if (_this->gl_config.share_with_current_context) {