]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove outdated tweaks for AMD graphics processors
authorMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 07:47:02 +0000 (09:47 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 07:51:32 +0000 (09:51 +0200)
Legacy versions of OpenGL are no longer supported so it's not necessary
to avoid these features anymore.

source/backends/opengl/extension.cpp

index c14f4cfc2f0892bae39876e17221b8b3c20b5358..8c9dad10cfd9ba68715242220a65dc78910b2f7e 100644 (file)
@@ -115,21 +115,6 @@ bool is_disabled(const string &ext)
                        disabled_exts.insert(disable.begin(), disable.end());
                }
 
-               if(const char *renderer_ptr = reinterpret_cast<const char *>(glGetString(GL_RENDERER)))
-               {
-                       string renderer = renderer_ptr;
-                       if(renderer.find("Radeon")!=string::npos || renderer.find("AMD")!=string::npos)
-                       {
-                               // The core primitive restart feature does not work either.
-                               disabled_exts.insert("GL_MSP_primitive_restart");
-
-                               /* AMD's uniform buffer objects only work with the core version of
-                               shaders. */
-                               if(Device::get_current().get_info().api_version<Version(2, 0))
-                                       disabled_exts.insert("GL_ARB_uniform_buffer_object");
-                       }
-               }
-
                init_done = true;
        }