From abf11f1a124b4aeb21a389f30342dab5347ca859 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 13 Jul 2015 09:49:02 +0200 Subject: [PATCH] - 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. --- src/gl/system/gl_interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gl/system/gl_interface.cpp b/src/gl/system/gl_interface.cpp index 4a043afe5f..2e7d0f1e0b 100644 --- a/src/gl/system/gl_interface.cpp +++ b/src/gl/system/gl_interface.cpp @@ -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"))