src/video/SDL_video.c
changeset 7745 c52d519d104a
parent 7742 84e32c3d415c
child 7746 6a05d7352575
equal deleted inserted replaced
7744:6a145dedc972 7745:c52d519d104a
   479     _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
   479     _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
   480     _this->gl_config.profile_mask = 0;
   480     _this->gl_config.profile_mask = 0;
   481 #if SDL_VIDEO_OPENGL
   481 #if SDL_VIDEO_OPENGL
   482     _this->gl_config.major_version = 2;
   482     _this->gl_config.major_version = 2;
   483     _this->gl_config.minor_version = 1;
   483     _this->gl_config.minor_version = 1;
       
   484 #elif SDL_VIDEO_OPENGL_ES2
       
   485     _this->gl_config.major_version = 2;
       
   486     _this->gl_config.minor_version = 0;
       
   487     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;   
   484 #elif SDL_VIDEO_OPENGL_ES
   488 #elif SDL_VIDEO_OPENGL_ES
   485     _this->gl_config.major_version = 1;
   489     _this->gl_config.major_version = 1;
   486     _this->gl_config.minor_version = 1;
   490     _this->gl_config.minor_version = 1;
   487     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
   491     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
   488 #elif SDL_VIDEO_OPENGL_ES2
       
   489     _this->gl_config.major_version = 2;
       
   490     _this->gl_config.minor_version = 0;
       
   491     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;   
       
   492 #endif
   492 #endif
   493     _this->gl_config.flags = 0;
   493     _this->gl_config.flags = 0;
   494     
   494     
   495     _this->gl_config.share_with_current_context = 0;
   495     _this->gl_config.share_with_current_context = 0;
   496 
   496