From: Mikko Rasa Date: Thu, 15 Sep 2016 14:46:10 +0000 (+0300) Subject: Add check for more modern AMD video cards X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=a480d4cc323db7cc77388f5af0094dd593dc66e9 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. --- 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