src/video/SDL_video.c
changeset 9412 8b1436ce1028
parent 9363 c9a4d606f6db
child 9416 d5c12b28df2d
equal deleted inserted replaced
9411:6810478a60e9 9412:8b1436ce1028
  2635     _this->gl_config.minor_version = 1;
  2635     _this->gl_config.minor_version = 1;
  2636     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
  2636     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
  2637 #endif
  2637 #endif
  2638     _this->gl_config.flags = 0;
  2638     _this->gl_config.flags = 0;
  2639     _this->gl_config.framebuffer_srgb_capable = 0;
  2639     _this->gl_config.framebuffer_srgb_capable = 0;
       
  2640     _this->gl_config.release_behavior = SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH;
  2640 
  2641 
  2641     _this->gl_config.share_with_current_context = 0;
  2642     _this->gl_config.share_with_current_context = 0;
  2642 }
  2643 }
  2643 
  2644 
  2644 int
  2645 int
  2740     case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
  2741     case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
  2741         _this->gl_config.share_with_current_context = value;
  2742         _this->gl_config.share_with_current_context = value;
  2742         break;
  2743         break;
  2743     case SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:
  2744     case SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:
  2744         _this->gl_config.framebuffer_srgb_capable = value;
  2745         _this->gl_config.framebuffer_srgb_capable = value;
       
  2746         break;
       
  2747     case SDL_GL_CONTEXT_RELEASE_BEHAVIOR:
       
  2748         _this->gl_config.release_behavior = value;
  2745         break;
  2749         break;
  2746     default:
  2750     default:
  2747         retval = SDL_SetError("Unknown OpenGL attribute");
  2751         retval = SDL_SetError("Unknown OpenGL attribute");
  2748         break;
  2752         break;
  2749     }
  2753     }
  2841     case SDL_GL_MULTISAMPLESAMPLES:
  2845     case SDL_GL_MULTISAMPLESAMPLES:
  2842 #if SDL_VIDEO_OPENGL
  2846 #if SDL_VIDEO_OPENGL
  2843         attrib = GL_SAMPLES_ARB;
  2847         attrib = GL_SAMPLES_ARB;
  2844 #else
  2848 #else
  2845         attrib = GL_SAMPLES;
  2849         attrib = GL_SAMPLES;
       
  2850 #endif
       
  2851         break;
       
  2852     case SDL_GL_CONTEXT_RELEASE_BEHAVIOR:
       
  2853 #if SDL_VIDEO_OPENGL
       
  2854         attrib = GL_CONTEXT_RELEASE_BEHAVIOR;
       
  2855 #else
       
  2856         attrib = GL_CONTEXT_RELEASE_BEHAVIOR_KHR;
  2846 #endif
  2857 #endif
  2847         break;
  2858         break;
  2848     case SDL_GL_BUFFER_SIZE:
  2859     case SDL_GL_BUFFER_SIZE:
  2849         {
  2860         {
  2850             GLint bits = 0;
  2861             GLint bits = 0;