mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Fix for glxewInit - we need GLX 1.2 for calling glXGetCurrentDisplay
This commit is contained in:
parent
8ae15ddd51
commit
f678171b69
@ -18,11 +18,11 @@ GLenum glxewInit ()
|
||||
int major, minor;
|
||||
const GLubyte* extStart;
|
||||
const GLubyte* extEnd;
|
||||
/* initialize core GLX 1.2 */
|
||||
if (_glewInit_GLX_VERSION_1_2()) return GLEW_ERROR_GLX_VERSION_11_ONLY;
|
||||
/* check for a display */
|
||||
display = glXGetCurrentDisplay();
|
||||
if (display == NULL) return GLEW_ERROR_NO_GLX_DISPLAY;
|
||||
/* initialize core GLX 1.2 */
|
||||
if (_glewInit_GLX_VERSION_1_2()) return GLEW_ERROR_GLX_VERSION_11_ONLY;
|
||||
/* initialize flags */
|
||||
GLXEW_VERSION_1_0 = GL_TRUE;
|
||||
GLXEW_VERSION_1_1 = GL_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user