Ver Fonte

Fixed compile warning, thanks to Michael Pohoreski

Sam Lantinga há 11 anos atrás
pai
commit
104ceb864a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      test/testshader.c

+ 1 - 1
test/testshader.c

@@ -187,7 +187,7 @@ static SDL_bool CompileShaderProgram(ShaderData *data)
     }
     glUseProgramObjectARB(0);
 
-    return (glGetError() == GL_NO_ERROR);
+    return (glGetError() == GL_NO_ERROR) ? SDL_TRUE : SDL_FALSE;
 }
 
 static void DestroyShaderProgram(ShaderData *data)