diff options
author | Brian Paul <brianp@vmware.com> | 2010-05-03 15:29:02 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-05-03 15:29:02 -0600 |
commit | babd71ba45cbb14d5747d5783e21bc9eb692df8e (patch) | |
tree | 0dc598c61978784939acefa9de61bd6c19c0d854 /progs | |
parent | 4b7812919a5db2f72bd3b9f6d760ffeb469ee3e4 (diff) |
progs/demos: check for GL_ARB_imaging if convolutions is requested
Diffstat (limited to 'progs')
-rw-r--r-- | 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 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(); |