summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTilman Sauerbeck <[email protected]>2006-04-28 21:50:41 +0000
committerTilman Sauerbeck <[email protected]>2006-04-28 21:50:41 +0000
commit9ecd280f338a722b356faf83872cf0ccaf19e0c6 (patch)
tree6616478965bb7a3b1aa10ad74e5d0068ee5bbfe9
parent6a769d97e3ad0c5275f918b9f36519d6c0254da3 (diff)
fptest1 requires GL_NV_fragment_program
-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 d0bcdaa226d..095190a8aef 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]);