src/video/SDL_video.c
changeset 7853 4861edda71d1
parent 7792 b8d4be87970a
child 7860 2b0bcdea3a79
equal deleted inserted replaced
7852:042ad8cbb550 7853:4861edda71d1
  2568     }
  2568     }
  2569         _this->gl_config.profile_mask = value;
  2569         _this->gl_config.profile_mask = value;
  2570         break;
  2570         break;
  2571     case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
  2571     case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
  2572         _this->gl_config.share_with_current_context = value;
  2572         _this->gl_config.share_with_current_context = value;
  2573     break;
  2573         break;
       
  2574     case SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:
       
  2575         _this->gl_config.framebuffer_srgb_capable = value;
       
  2576         break;
  2574     default:
  2577     default:
  2575         retval = SDL_SetError("Unknown OpenGL attribute");
  2578         retval = SDL_SetError("Unknown OpenGL attribute");
  2576         break;
  2579         break;
  2577     }
  2580     }
  2578     return retval;
  2581     return retval;
  2737             return 0;
  2740             return 0;
  2738         }
  2741         }
  2739     case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
  2742     case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
  2740         {
  2743         {
  2741             *value = _this->gl_config.share_with_current_context;
  2744             *value = _this->gl_config.share_with_current_context;
       
  2745             return 0;
       
  2746         }
       
  2747     case SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:
       
  2748         {
       
  2749             *value = _this->gl_config.framebuffer_srgb_capable;
  2742             return 0;
  2750             return 0;
  2743         }
  2751         }
  2744     default:
  2752     default:
  2745         return SDL_SetError("Unknown OpenGL attribute");
  2753         return SDL_SetError("Unknown OpenGL attribute");
  2746     }
  2754     }