src/video/SDL_video.c
changeset 11444 38f181f81476
parent 11438 1717e5011161
child 11490 c7cc4401ab96
equal deleted inserted replaced
11443:a15af5a487a1 11444:38f181f81476
  2985     _this->gl_config.stereo = 0;
  2985     _this->gl_config.stereo = 0;
  2986     _this->gl_config.multisamplebuffers = 0;
  2986     _this->gl_config.multisamplebuffers = 0;
  2987     _this->gl_config.multisamplesamples = 0;
  2987     _this->gl_config.multisamplesamples = 0;
  2988     _this->gl_config.retained_backing = 1;
  2988     _this->gl_config.retained_backing = 1;
  2989     _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
  2989     _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
  2990     _this->gl_config.profile_mask = 0;
  2990 
       
  2991     if (_this->GL_DefaultProfileConfig) {
       
  2992         _this->GL_DefaultProfileConfig(_this, &_this->gl_config.profile_mask,
       
  2993                                        &_this->gl_config.major_version,
       
  2994                                        &_this->gl_config.minor_version);
       
  2995     } else {
  2991 #if SDL_VIDEO_OPENGL
  2996 #if SDL_VIDEO_OPENGL
  2992     _this->gl_config.major_version = 2;
  2997         _this->gl_config.major_version = 2;
  2993     _this->gl_config.minor_version = 1;
  2998         _this->gl_config.minor_version = 1;
       
  2999         _this->gl_config.profile_mask = 0;
  2994 #elif SDL_VIDEO_OPENGL_ES2
  3000 #elif SDL_VIDEO_OPENGL_ES2
  2995     _this->gl_config.major_version = 2;
  3001         _this->gl_config.major_version = 2;
  2996     _this->gl_config.minor_version = 0;
  3002         _this->gl_config.minor_version = 0;
  2997     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
  3003         _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
  2998 #elif SDL_VIDEO_OPENGL_ES
  3004 #elif SDL_VIDEO_OPENGL_ES
  2999     _this->gl_config.major_version = 1;
  3005         _this->gl_config.major_version = 1;
  3000     _this->gl_config.minor_version = 1;
  3006         _this->gl_config.minor_version = 1;
  3001     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
  3007         _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
  3002 #endif
  3008 #endif
       
  3009     }
       
  3010 
  3003     _this->gl_config.flags = 0;
  3011     _this->gl_config.flags = 0;
  3004     _this->gl_config.framebuffer_srgb_capable = 0;
  3012     _this->gl_config.framebuffer_srgb_capable = 0;
  3005     _this->gl_config.no_error = 0;
  3013     _this->gl_config.no_error = 0;
  3006     _this->gl_config.release_behavior = SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH;
  3014     _this->gl_config.release_behavior = SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH;
  3007     _this->gl_config.reset_notification = SDL_GL_CONTEXT_RESET_NO_NOTIFICATION;
  3015     _this->gl_config.reset_notification = SDL_GL_CONTEXT_RESET_NO_NOTIFICATION;