mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-29 01:01:56 +00:00
glxewInit and wglewInit fixup.
This commit is contained in:
parent
470652935c
commit
9e3e40d974
@ -34,21 +34,15 @@ GLboolean glewExperimental = GL_FALSE;
|
|||||||
|
|
||||||
#if !defined(GLEW_MX)
|
#if !defined(GLEW_MX)
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
extern GLenum GLEWAPIENTRY wglewContextInit (void);
|
|
||||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
|
||||||
extern GLenum GLEWAPIENTRY glxewContextInit (void);
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
GLenum GLEWAPIENTRY glewInit (void)
|
GLenum GLEWAPIENTRY glewInit (void)
|
||||||
{
|
{
|
||||||
GLenum r;
|
GLenum r;
|
||||||
r = glewContextInit();
|
r = glewContextInit();
|
||||||
if ( r != 0 ) return r;
|
if ( r != 0 ) return r;
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
return wglewContextInit();
|
return wglewInit();
|
||||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) /* _UNIX */
|
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) /* _UNIX */
|
||||||
return glxewContextInit();
|
return glxewInit();
|
||||||
#else
|
#else
|
||||||
return r;
|
return r;
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
Loading…
Reference in New Issue
Block a user