string renderer = reinterpret_cast<const char *>(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<string> disable = split(disable_ptr);