- print an error message if GL_ARB_sampler_objects cannot be found.

GZDoom requires this extension and all supported hardware has drivers implementing it but there still seem to be people out there who stuck to some older, obsolete drivers that don't.
This commit is contained in:
Christoph Oelckers 2015-07-13 09:49:02 +02:00
parent fbefe13bb2
commit abf11f1a12

View file

@ -128,6 +128,10 @@ void gl_LoadExtensions()
gl.vendorstring = (char*)glGetString(GL_VENDOR);
if (gl.version < 3.3f && !CheckExtension("GL_ARB_sampler_objects"))
{
I_FatalError("'GL_ARB_sampler_objects' extension not found. Please update your graphics driver.");
}
if (CheckExtension("GL_ARB_texture_compression")) gl.flags|=RFL_TEXTURE_COMPRESSION;
if (CheckExtension("GL_EXT_texture_compression_s3tc")) gl.flags|=RFL_TEXTURE_COMPRESSION_S3TC;
if (!Args->CheckParm("-gl3"))