Resolve ID: 3454462 - glewInit assignment in conditional warning

This commit is contained in:
Nigel Stewart 2012-05-04 11:03:37 -05:00
parent 863a169bca
commit 1728006b5d
1 changed files with 3 additions and 2 deletions

View File

@ -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 */