aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/gl_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gl_ps.c b/tests/gl_ps.c
index a8a6807f..6ea0e3db 100644
--- a/tests/gl_ps.c
+++ b/tests/gl_ps.c
@@ -79,7 +79,8 @@ void shaders() {
glGetProgramiv(program, GL_LINK_STATUS, &ok);
assert(ok);
assert(glIsProgram(program));
- assert(!glIsProgram(-1));
+ assert(!glIsProgram(0));
+ assert(!glIsProgram(program+1)); // a number that can't be a real shader
glUseProgram(program);