src/video/SDL_video.c
changeset 10927 4a024118a421
parent 10924 abfe0c4d98ac
child 10995 b2a06697db74
equal deleted inserted replaced
10926:97c829825e0e 10927:4a024118a421
  2807             _this->GL_UnloadLibrary(_this);
  2807             _this->GL_UnloadLibrary(_this);
  2808         }
  2808         }
  2809     }
  2809     }
  2810 }
  2810 }
  2811 
  2811 
       
  2812 #if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
  2812 static SDL_INLINE SDL_bool
  2813 static SDL_INLINE SDL_bool
  2813 isAtLeastGL3(const char *verstr)
  2814 isAtLeastGL3(const char *verstr)
  2814 {
  2815 {
  2815     return (verstr && (SDL_atoi(verstr) >= 3));
  2816     return (verstr && (SDL_atoi(verstr) >= 3));
  2816 }
  2817 }
       
  2818 #endif
  2817 
  2819 
  2818 SDL_bool
  2820 SDL_bool
  2819 SDL_GL_ExtensionSupported(const char *extension)
  2821 SDL_GL_ExtensionSupported(const char *extension)
  2820 {
  2822 {
  2821 #if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
  2823 #if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2