mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 16:53:49 +00:00
Resolve ID: 3454462 - glewInit assignment in conditional warning
This commit is contained in:
parent
863a169bca
commit
1728006b5d
@ -40,10 +40,11 @@ extern GLenum wglewContextInit (void);
|
|||||||
extern GLenum glxewContextInit (void);
|
extern GLenum glxewContextInit (void);
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
GLenum glewInit ()
|
GLenum glewInit (void)
|
||||||
{
|
{
|
||||||
GLenum r;
|
GLenum r;
|
||||||
if ( (r = glewContextInit()) ) return r;
|
r = glewContextInit();
|
||||||
|
if ( r != 0 ) return r;
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
return wglewContextInit();
|
return wglewContextInit();
|
||||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) /* _UNIX */
|
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) /* _UNIX */
|
||||||
|
Loading…
Reference in New Issue
Block a user