summaryrefslogtreecommitdiffstats
path: root/progs/tests/vptest2.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-12 11:59:37 -0800
committerVinson Lee <[email protected]>2010-02-12 11:59:37 -0800
commitaf1052e2804ee5fbcde3c8f8618feeb2c17b51fd (patch)
treeb9d5d9e2d984a7d9de332dbab057a2b13cb3f07d /progs/tests/vptest2.c
parent3a916b0e81cdbc695d0af317f7d5d8515af13c02 (diff)
progs/tests: Add checks for GL_NV_vertex_program.
Diffstat (limited to 'progs/tests/vptest2.c')
-rw-r--r--progs/tests/vptest2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/tests/vptest2.c b/progs/tests/vptest2.c
index 4161b03a673..89cd6b1458c 100644
--- a/progs/tests/vptest2.c
+++ b/progs/tests/vptest2.c
@@ -144,6 +144,12 @@ int main( int argc, char *argv[] )
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );
glutDisplayFunc( Display );
+
+ if (!glutExtensionSupported("GL_NV_vertex_program")) {
+ printf("Sorry, this program requires GL_NV_vertex_program\n");
+ exit(1);
+ }
+
Test1();
Test2();
Test3();