projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b78129
)
progs/demos: check for GL_ARB_imaging if convolutions is requested
author
Brian Paul
<brianp@vmware.com>
Mon, 3 May 2010 21:29:02 +0000
(15:29 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 3 May 2010 21:29:02 +0000
(15:29 -0600)
progs/demos/gloss.c
patch
|
blob
|
history
diff --git
a/progs/demos/gloss.c
b/progs/demos/gloss.c
index 450861e57781934cdcebb9788c4cf391a6d3e249..ddfd548b8b9eb981bd3f48842b06edbea24b2e1a 100644
(file)
--- 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();