diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-15 17:43:05 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-15 17:43:05 +0100 |
commit | 29244f1f86a71419919c5d0e850db7672ee38056 (patch) | |
tree | abc770b7dad4b3dc52e9be9d0c5e624f513f505e /tests/gl_ps.c | |
parent | 29df3df4f2b5eeb5050653678a287cbc7e143886 (diff) |
improve glIsProgram testing
Diffstat (limited to 'tests/gl_ps.c')
-rw-r--r-- | tests/gl_ps.c | 3 |
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); |