From: Brian Paul Date: Mon, 3 May 2010 21:29:02 +0000 (-0600) Subject: progs/demos: check for GL_ARB_imaging if convolutions is requested X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=babd71ba45cbb14d5747d5783e21bc9eb692df8e;p=mesa.git progs/demos: check for GL_ARB_imaging if convolutions is requested --- 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();