Commit 6aa17426a6974e4f8f643a52bb70720cb1571cfc

Ryan C. Gordon 2017-03-03T16:38:45

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index d8f4db3..8a76c19 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -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
 isAtLeastGL3(const char *verstr)
 {
     return (verstr && (SDL_atoi(verstr) >= 3));
 }
+#endif
 
 SDL_bool
 SDL_GL_ExtensionSupported(const char *extension)