progs/demos: check for GL_ARB_imaging if convolutions is requested
This commit is contained in:
@@ -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)
|
if (fullscreen)
|
||||||
glutFullScreen();
|
glutFullScreen();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user