add #ifdef check around GLEW_VERSION_4_6

This fixes compilation on Debian Stretch
This commit is contained in:
d3fault 2020-09-02 23:44:24 -07:00
parent 7a1d2c0f4e
commit b5861f2857

View file

@ -3732,6 +3732,7 @@ CCommandProcessor_SDL_OpenGL::CCommandProcessor_SDL_OpenGL(int OpenGLMajor, int
static void GetGlewVersion(int& GlewMajor, int& GlewMinor, int& GlewPatch)
{
#ifdef GLEW_VERSION_4_6
if(GLEW_VERSION_4_6)
{
GlewMajor = 4;
@ -3739,6 +3740,7 @@ static void GetGlewVersion(int& GlewMajor, int& GlewMinor, int& GlewPatch)
GlewPatch = 0;
return;
}
#endif
if(GLEW_VERSION_4_5)
{
GlewMajor = 4;