Commit 1728006b authored by Nigel Stewart's avatar Nigel Stewart
Browse files

Resolve ID: 3454462 - glewInit assignment in conditional warning

parent 863a169b
......@@ -40,10 +40,11 @@ extern GLenum wglewContextInit (void);
extern GLenum glxewContextInit (void);
#endif /* _WIN32 */
GLenum glewInit ()
GLenum glewInit (void)
{
GLenum r;
if ( (r = glewContextInit()) ) return r;
r = glewContextInit();
if ( r != 0 ) return r;
#if defined(_WIN32)
return wglewContextInit();
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) /* _UNIX */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment