From: Mikko Rasa Date: Fri, 17 Oct 2014 18:44:01 +0000 (+0300) Subject: Tweak extension behavior on Radeon X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=08abb340625c6d281496095f2a664f27570c2b64 Tweak extension behavior on Radeon --- diff --git a/source/extension.cpp b/source/extension.cpp index fdbefb53..efa4b1a2 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -80,11 +80,18 @@ bool is_supported(const string &ext) string renderer = reinterpret_cast(glGetString(GL_RENDERER)); if(renderer.find("Radeon")!=string::npos) + { /* Radeon doesn't process NV_primitive_restart correctly and treats the restart index as a normal element if the indices are stored in a buffer. */ extensions.erase("GL_NV_primitive_restart"); + /* AMD's uniform buffer objects only work with the core version of + shaders. */ + if(!(get_gl_version()>=Version(2, 0))) + extensions.erase("GL_ARB_uniform_buffer_object"); + } + if(const char *disable_ptr = getenv("MSPGL_DISABLE_EXTENSIONS")) { vector disable = split(disable_ptr);