src/video/x11/SDL_x11opengl.c
changeset 7853 4861edda71d1
parent 7827 a03ec8de0426
child 8093 b43765095a6f
equal deleted inserted replaced
7852:042ad8cbb550 7853:4861edda71d1
   101 
   101 
   102 #ifndef GLX_EXT_create_context_es2_profile
   102 #ifndef GLX_EXT_create_context_es2_profile
   103 #define GLX_EXT_create_context_es2_profile
   103 #define GLX_EXT_create_context_es2_profile
   104 #ifndef GLX_CONTEXT_ES2_PROFILE_BIT_EXT
   104 #ifndef GLX_CONTEXT_ES2_PROFILE_BIT_EXT
   105 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT    0x00000002
   105 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT    0x00000002
       
   106 #endif
       
   107 #endif
       
   108 
       
   109 #ifndef GLX_ARB_framebuffer_sRGB
       
   110 #define GLX_ARB_framebuffer_sRGB
       
   111 #ifndef GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB
       
   112 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB                0x20B2
   106 #endif
   113 #endif
   107 #endif
   114 #endif
   108 
   115 
   109 #ifndef GLX_EXT_swap_control
   116 #ifndef GLX_EXT_swap_control
   110 #define GLX_SWAP_INTERVAL_EXT              0x20F1
   117 #define GLX_SWAP_INTERVAL_EXT              0x20F1
   468     }
   475     }
   469 
   476 
   470     if (_this->gl_config.multisamplesamples) {
   477     if (_this->gl_config.multisamplesamples) {
   471         attribs[i++] = GLX_SAMPLES_ARB;
   478         attribs[i++] = GLX_SAMPLES_ARB;
   472         attribs[i++] = _this->gl_config.multisamplesamples;
   479         attribs[i++] = _this->gl_config.multisamplesamples;
       
   480     }
       
   481 
       
   482     if (_this->gl_config.framebuffer_srgb_capable) {
       
   483         attribs[i++] = GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB;
       
   484         if( for_FBConfig ) {
       
   485             attribs[i++] = True;
       
   486         }
   473     }
   487     }
   474 
   488 
   475     if (_this->gl_config.accelerated >= 0 &&
   489     if (_this->gl_config.accelerated >= 0 &&
   476         _this->gl_data->HAS_GLX_EXT_visual_rating) {
   490         _this->gl_data->HAS_GLX_EXT_visual_rating) {
   477         attribs[i++] = GLX_VISUAL_CAVEAT_EXT;
   491         attribs[i++] = GLX_VISUAL_CAVEAT_EXT;