src/video/x11/SDL_x11opengles.h
changeset 6370 93187f7f7d5d
parent 6190 519380462400
child 6885 700f1b25f77f
     1.1 --- a/src/video/x11/SDL_x11opengles.h	Wed Jul 18 15:02:48 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11opengles.h	Wed Jul 18 15:17:27 2012 -0700
     1.3 @@ -18,7 +18,12 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 +#include "SDL_config.h"
     1.8  
     1.9 +#ifndef _SDL_x11opengles_h
    1.10 +#define _SDL_x11opengles_h
    1.11 +
    1.12 +#if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
    1.13  #include <GLES/gl.h>
    1.14  #include <GLES/egl.h>
    1.15  #include <dlfcn.h>
    1.16 @@ -30,7 +35,6 @@
    1.17  
    1.18  typedef struct SDL_PrivateGLESData
    1.19  {
    1.20 -    int egl_active;             /* to stop switching drivers while we have a valid context */
    1.21      XVisualInfo *egl_visualinfo;
    1.22      void *egl_dll_handle;
    1.23      EGLDisplay egl_display;
    1.24 @@ -92,3 +96,9 @@
    1.25  extern int X11_GLES_GetSwapInterval(_THIS);
    1.26  extern void X11_GLES_SwapWindow(_THIS, SDL_Window * window);
    1.27  extern void X11_GLES_DeleteContext(_THIS, SDL_GLContext context);
    1.28 +
    1.29 +#endif /* SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2 */
    1.30 +
    1.31 +#endif /* _SDL_x11opengles_h */
    1.32 +
    1.33 +/* vi: set ts=4 sw=4 expandtab: */