aboutsummaryrefslogtreecommitdiffstats
path: root/progs/demos
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-03 15:29:02 -0600
committerBrian Paul <[email protected]>2010-05-03 15:29:02 -0600
commitbabd71ba45cbb14d5747d5783e21bc9eb692df8e (patch)
tree0dc598c61978784939acefa9de61bd6c19c0d854 /progs/demos
parent4b7812919a5db2f72bd3b9f6d760ffeb469ee3e4 (diff)
progs/demos: check for GL_ARB_imaging if convolutions is requested
Diffstat (limited to 'progs/demos')
-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 450861e5778..ddfd548b8b9 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();