Explorar o código

Fixed compile warning, thanks to Michael Pohoreski

Sam Lantinga %!s(int64=11) %!d(string=hai) anos
pai
achega
104ceb864a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)