mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-18 02:11:27 +00:00
- 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:
parent
fbefe13bb2
commit
abf11f1a12
1 changed files with 4 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue