21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_X11 && SDL_VIDEO_OPENGL_EGL
32 X11_GLES_LoadLibrary(
_THIS,
const char *
path)
38 #if SDL_VIDEO_OPENGL_GLX
39 X11_GLES_UnloadLibrary(
_this);
49 return X11_GL_LoadLibrary(
_this, path);
51 return SDL_SetError(
"SDL not configured with OpenGL/GLX support");
59 X11_GLES_GetVisual(
_THIS, Display * display,
int screen)
62 XVisualInfo *egl_visualinfo =
NULL;
67 if (!
_this->egl_data) {
72 if (
_this->egl_data->eglGetConfigAttrib(
_this->egl_data->egl_display,
73 _this->egl_data->egl_config,
78 egl_visualinfo = X11_XGetVisualInfo(display,
83 vi_in.visualid = visual_id;
84 egl_visualinfo = X11_XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &vi_in, &out_count);
87 return egl_visualinfo;
97 X11_XSync(display, False);
99 X11_XSync(display, False);
104 SDL_EGL_SwapWindow_impl(X11)
105 SDL_EGL_MakeCurrent_impl(X11)