Explorar el Código

Fixed compile warning, thanks to Michael Pohoreski

Sam Lantinga hace 11 años
padre
commit
104ceb864a
Se han modificado 1 ficheros con 1 adiciones y 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)