Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
glew
Commits
67e980b5
Commit
67e980b5
authored
Sep 01, 2016
by
Nigel Stewart
Committed by
GitHub
Sep 01, 2016
Browse files
Merge pull request #101 from dcower/master
Fix wglGetProcAddress-related crash on 64-bit Windows with NOGDI defined
parents
7d72257b
2ca01848
Changes
1
Hide whitespace changes
Inline
Side-by-side
auto/src/glew_head.c
View file @
67e980b5
...
...
@@ -6,6 +6,14 @@
#elif defined(GLEW_EGL)
# include <GL/eglew.h>
#elif defined(_WIN32)
/*
* If NOGDI is defined, wingdi.h won't be included by windows.h, and thus
* wglGetProcAddress won't be declared. It will instead be implicitly declared,
* potentially incorrectly, which we don't want.
*/
# if defined(NOGDI)
# undef NOGDI
# endif
# include <GL/wglew.h>
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
# include <GL/glxew.h>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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