mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
add #ifdef check around GLEW_VERSION_4_6
This fixes compilation on Debian Stretch
This commit is contained in:
parent
7a1d2c0f4e
commit
b5861f2857
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue