video: Don't compile isAtLeastGL3() if we don't have OpenGL support _at all_.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 03 Mar 2017 16:38:45 -0500
changeset 109274a024118a421
parent 10926 97c829825e0e
child 10928 fff135f69aaf
video: Don't compile isAtLeastGL3() if we don't have OpenGL support _at all_.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Fri Mar 03 16:38:17 2017 -0500
     1.2 +++ b/src/video/SDL_video.c	Fri Mar 03 16:38:45 2017 -0500
     1.3 @@ -2809,11 +2809,13 @@
     1.4      }
     1.5  }
     1.6  
     1.7 +#if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
     1.8  static SDL_INLINE SDL_bool
     1.9  isAtLeastGL3(const char *verstr)
    1.10  {
    1.11      return (verstr && (SDL_atoi(verstr) >= 3));
    1.12  }
    1.13 +#endif
    1.14  
    1.15  SDL_bool
    1.16  SDL_GL_ExtensionSupported(const char *extension)