progs/demos: check for GL_ARB_imaging if convolutions is requested

This commit is contained in:
Brian Paul
2010-05-03 15:29:02 -06:00
parent 4b7812919a
commit babd71ba45

View 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();