Fix compile warnings for GwenOpenGLTest and Test_enet_chat_client.

This commit is contained in:
Jeffrey Bingham
2017-09-30 13:13:46 -07:00
parent 6e4707df5f
commit febbb92fb6
2 changed files with 4 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ int main()
int majorGlVersion, minorGlVersion;
if (!sscanf((const char*)glGetString(GL_VERSION), "%d.%d", &majorGlVersion, &minorGlVersion)==2)
if (!(sscanf((const char*)glGetString(GL_VERSION), "%d.%d", &majorGlVersion, &minorGlVersion)==2))
{
printf("Exit: Error cannot extract OpenGL version from GL_VERSION string\n");
exit(0);