video: Don't compile isAtLeastGL3() if we don't have OpenGL support _at all_.

Ryan C. Gordon 2017-03-03 16:38:45 -05:00
parent ca0bf151d5
commit 6aa17426a6
1 changed files with 2 additions and 0 deletions

View File

@ -2809,11 +2809,13 @@ SDL_GL_UnloadLibrary(void)
} }
} }
#if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
static SDL_INLINE SDL_bool static SDL_INLINE SDL_bool
isAtLeastGL3(const char *verstr) isAtLeastGL3(const char *verstr)
{ {
return (verstr && (SDL_atoi(verstr) >= 3)); return (verstr && (SDL_atoi(verstr) >= 3));
} }
#endif
SDL_bool SDL_bool
SDL_GL_ExtensionSupported(const char *extension) SDL_GL_ExtensionSupported(const char *extension)