src/video/x11/SDL_x11window.c
changeset 7737 e9d463cb5b49
parent 7723 aea98cc3e696
child 7741 199d77d7bf1c
equal deleted inserted replaced
7736:84d89d60908f 7737:e9d463cb5b49
   363     Atom _NET_WM_PID;
   363     Atom _NET_WM_PID;
   364     Atom XdndAware, xdnd_version = 5;
   364     Atom XdndAware, xdnd_version = 5;
   365     Uint32 fevent = 0;
   365     Uint32 fevent = 0;
   366 
   366 
   367 #if SDL_VIDEO_OPENGL_GLX || SDL_VIDEO_OPENGL_EGL
   367 #if SDL_VIDEO_OPENGL_GLX || SDL_VIDEO_OPENGL_EGL
   368     if (window->flags & SDL_WINDOW_OPENGL) {
   368     if ((window->flags & SDL_WINDOW_OPENGL) &&
       
   369         !SDL_getenv("SDL_VIDEO_X11_VISUALID")) {
   369         XVisualInfo *vinfo = NULL;
   370         XVisualInfo *vinfo = NULL;
   370 
   371 
   371 #if SDL_VIDEO_OPENGL_EGL
   372 #if SDL_VIDEO_OPENGL_EGL
   372         if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES && 
   373         if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES && 
   373             ( !_this->gl_data || ! _this->gl_data->HAS_GLX_EXT_create_context_es2_profile )) {
   374             ( !_this->gl_data || ! _this->gl_data->HAS_GLX_EXT_create_context_es2_profile )) {