src/video/x11/SDL_x11opengl.c
changeset 6373 494e0436525f
parent 6370 93187f7f7d5d
child 6375 93f9a24d1c02
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Wed Jul 18 15:53:33 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Thu Jul 19 09:36:58 2012 -0700
     1.3 @@ -128,9 +128,9 @@
     1.4          return -1;
     1.5      }
     1.6  
     1.7 -#if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
     1.8      /* If SDL_GL_CONTEXT_EGL has been changed to 1, switch over to X11_GLES functions  */
     1.9      if (_this->gl_config.use_egl == 1) {
    1.10 +#if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
    1.11          _this->GL_LoadLibrary = X11_GLES_LoadLibrary;
    1.12          _this->GL_GetProcAddress = X11_GLES_GetProcAddress;
    1.13          _this->GL_UnloadLibrary = X11_GLES_UnloadLibrary;
    1.14 @@ -141,8 +141,11 @@
    1.15          _this->GL_SwapWindow = X11_GLES_SwapWindow;
    1.16          _this->GL_DeleteContext = X11_GLES_DeleteContext;
    1.17          return X11_GLES_LoadLibrary(_this, path);
    1.18 +#else
    1.19 +        SDL_SetError("SDL not configured with OpenGL ES/EGL support");
    1.20 +        return -1;
    1.21 +#endif
    1.22      }
    1.23 -#endif
    1.24  
    1.25  
    1.26      /* Load the OpenGL library */