From babd71ba45cbb14d5747d5783e21bc9eb692df8e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 3 May 2010 15:29:02 -0600 Subject: [PATCH] progs/demos: check for GL_ARB_imaging if convolutions is requested --- progs/demos/gloss.c | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- 2.30.2