progs/demos: check for GL_ARB_imaging if convolutions is requested
authorBrian Paul <brianp@vmware.com>
Mon, 3 May 2010 21:29:02 +0000 (15:29 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 3 May 2010 21:29:02 +0000 (15:29 -0600)
progs/demos/gloss.c

index 450861e57781934cdcebb9788c4cf391a6d3e249..ddfd548b8b9eb981bd3f48842b06edbea24b2e1a 100644 (file)
@@ -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();