From a480d4cc323db7cc77388f5af0094dd593dc66e9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Sep 2016 17:46:10 +0300 Subject: [PATCH] Add check for more modern AMD video cards They no longer have "Radeon" as part of the renderer string, at least with the amdgpu driver. --- source/extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/extension.cpp b/source/extension.cpp index 023510da..bceab7ad 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -82,7 +82,7 @@ bool is_supported(const string &ext) } string renderer = reinterpret_cast(glGetString(GL_RENDERER)); - if(renderer.find("Radeon")!=string::npos) + if(renderer.find("Radeon")!=string::npos || renderer.find("AMD")!=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 -- 2.43.0