Mesa (master): progs/demos: check for GL_ARB_imaging if convolutions is requested
Brian Paul
brianp at kemper.freedesktop.org
Mon May 3 23:14:26 UTC 2010
Module: Mesa
Branch: master
Commit: babd71ba45cbb14d5747d5783e21bc9eb692df8e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=babd71ba45cbb14d5747d5783e21bc9eb692df8e
Author: Brian Paul <brianp at vmware.com>
Date: Mon May 3 15:29:02 2010 -0600
progs/demos: check for GL_ARB_imaging if convolutions is requested
---
progs/demos/gloss.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/progs/demos/gloss.c b/progs/demos/gloss.c
index 450861e..ddfd548 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();
More information about the mesa-commit
mailing list