From 269a74980e2db1ee5004b643f23c2607a77ead58 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 28 Mar 2013 20:44:21 +0200 Subject: [PATCH] Disable NV_primitive_restart on Radeon cards because it's buggy --- source/extension.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.45.2