Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glew
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Maik Froechtenicht
glew
Commits
f678171b
Commit
f678171b
authored
Apr 27, 2017
by
Nigel Stewart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for glxewInit - we need GLX 1.2 for calling glXGetCurrentDisplay
parent
8ae15ddd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
auto/src/glew_init_glx.c
auto/src/glew_init_glx.c
+2
-2
No files found.
auto/src/glew_init_glx.c
View file @
f678171b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment