From: Mikko Rasa Date: Fri, 29 Dec 2023 07:47:02 +0000 (+0200) Subject: Remove outdated tweaks for AMD graphics processors X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=8a33212d63c412c7645a980c996e0435560b831c;p=libs%2Fgl.git Remove outdated tweaks for AMD graphics processors Legacy versions of OpenGL are no longer supported so it's not necessary to avoid these features anymore. --- diff --git a/source/backends/opengl/extension.cpp b/source/backends/opengl/extension.cpp index c14f4cfc..8c9dad10 100644 --- a/source/backends/opengl/extension.cpp +++ b/source/backends/opengl/extension.cpp @@ -115,21 +115,6 @@ bool is_disabled(const string &ext) disabled_exts.insert(disable.begin(), disable.end()); } - if(const char *renderer_ptr = reinterpret_cast(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