Better fix for glew

This commit is contained in:
Deve 2017-05-14 00:06:54 +02:00
parent 1966d3f072
commit 961ac4d79e

View File

@ -14064,8 +14064,11 @@ GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST)
GLXEW_VERSION_1_2 = GL_TRUE; GLXEW_VERSION_1_2 = GL_TRUE;
GLXEW_VERSION_1_3 = GL_TRUE; GLXEW_VERSION_1_3 = GL_TRUE;
GLXEW_VERSION_1_4 = GL_TRUE; GLXEW_VERSION_1_4 = GL_TRUE;
/* Check if GLX display is available */
if (glXGetCurrentDisplay == NULL || glXGetCurrentDisplay() == NULL)
return GLEW_OK;
/* query GLX version */ /* query GLX version */
/* glXQueryVersion(glXGetCurrentDisplay(), &major, &minor); glXQueryVersion(glXGetCurrentDisplay(), &major, &minor);
if (major == 1 && minor <= 3) if (major == 1 && minor <= 3)
{ {
switch (minor) switch (minor)
@ -14081,7 +14084,7 @@ GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST)
return GLEW_ERROR_GLX_VERSION_11_ONLY; return GLEW_ERROR_GLX_VERSION_11_ONLY;
break; break;
} }
}*/ }
/* query GLX extension string */ /* query GLX extension string */
extStart = 0; extStart = 0;
if (glXGetCurrentDisplay != NULL) if (glXGetCurrentDisplay != NULL)