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