]> git.tdb.fi Git - libs/gl.git/commitdiff
Add check for more modern AMD video cards
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:46:10 +0000 (17:46 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:46:10 +0000 (17:46 +0300)
They no longer have "Radeon" as part of the renderer string, at least
with the amdgpu driver.

source/extension.cpp

index 023510da4bdce0d751317735800eb06329477559..bceab7ad964e1e3e68fe44bb174b76d8b992fd5b 100644 (file)
@@ -82,7 +82,7 @@ bool is_supported(const string &ext)
                }
 
                string renderer = reinterpret_cast<const char *>(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