Commit 104ceb864aa2dba24f8e0ece493611c95462b4f6

Sam Lantinga 2013-11-16T10:25:46

Fixed compile warning, thanks to Michael Pohoreski

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testshader.c b/test/testshader.c
index 0446770..ced43fd 100644
--- a/test/testshader.c
+++ b/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)