From: Mikko Rasa Date: Thu, 28 Mar 2013 18:44:21 +0000 (+0200) Subject: Disable NV_primitive_restart on Radeon cards because it's buggy X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=269a74980e2db1ee5004b643f23c2607a77ead58;p=libs%2Fgl.git Disable NV_primitive_restart on Radeon cards because it's buggy --- diff --git a/source/extension.cpp b/source/extension.cpp index 6ca4f08c..d4acedaf 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -53,6 +53,13 @@ bool is_supported(const string &ext) extensions.insert(exts.begin(), exts.end()); } + 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"); + init_done = true; }