diff options
author | Vinson Lee <[email protected]> | 2010-02-12 11:59:37 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-12 11:59:37 -0800 |
commit | af1052e2804ee5fbcde3c8f8618feeb2c17b51fd (patch) | |
tree | b9d5d9e2d984a7d9de332dbab057a2b13cb3f07d /progs/tests/vptest3.c | |
parent | 3a916b0e81cdbc695d0af317f7d5d8515af13c02 (diff) |
progs/tests: Add checks for GL_NV_vertex_program.
Diffstat (limited to 'progs/tests/vptest3.c')
-rw-r--r-- | progs/tests/vptest3.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/tests/vptest3.c b/progs/tests/vptest3.c index 4e4bfee31dc..58ce227e6e0 100644 --- a/progs/tests/vptest3.c +++ b/progs/tests/vptest3.c @@ -93,6 +93,11 @@ static void Init( void ) #endif "END\n"; + if (!glutExtensionSupported("GL_NV_vertex_program")) { + printf("Sorry, this program requires GL_NV_vertex_program\n"); + exit(1); + } + glLoadProgramNV(GL_VERTEX_PROGRAM_NV, 1, strlen(prog1), (const GLubyte *) prog1); |