summaryrefslogtreecommitdiff
path: root/progs/tests/vptest1.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/vptest1.c')
-rw-r--r--progs/tests/vptest1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/tests/vptest1.c b/progs/tests/vptest1.c
index 6e32b03346..d83f9cae37 100644
--- a/progs/tests/vptest1.c
+++ b/progs/tests/vptest1.c
@@ -113,6 +113,11 @@ static void Init( void )
GLuint progs[5];
+ if (!glutExtensionSupported("GL_NV_vertex_program")) {
+ printf("Sorry, this program requires GL_NV_vertex_program\n");
+ exit(1);
+ }
+
glGenProgramsNV(2, progs);
assert(progs[0]);
assert(progs[1]);