summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-03 15:29:02 -0600
committerBrian Paul <brianp@vmware.com>2010-05-03 15:29:02 -0600
commitbabd71ba45cbb14d5747d5783e21bc9eb692df8e (patch)
tree0dc598c61978784939acefa9de61bd6c19c0d854 /progs
parent4b7812919a5db2f72bd3b9f6d760ffeb469ee3e4 (diff)
progs/demos: check for GL_ARB_imaging if convolutions is requested
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/gloss.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/demos/gloss.c b/progs/demos/gloss.c
index 450861e577..ddfd548b8b 100644
--- a/progs/demos/gloss.c
+++ b/progs/demos/gloss.c
@@ -282,6 +282,13 @@ static void Init( int argc, char *argv[] )
}
}
+ if (convolve && !glutExtensionSupported("GL_ARB_imaging")) {
+ fprintf(stderr,
+ "GL_ARB_imaging is not supported, disabling convolution.\n");
+ exit(1);
+ }
+
+
if (fullscreen)
glutFullScreen();