]> git.tdb.fi Git - libs/gl.git/blobdiff - source/extension.cpp
Disable core version of primitive restart on Radeon as well
[libs/gl.git] / source / extension.cpp
index 2dc298c1f5105f13892d2d499567fd0112424a1e..c543328b6550236819bbcb727440e3178cc9bf6e 100644 (file)
@@ -79,6 +79,9 @@ Require::Require(const Extension &ext)
 
 bool is_supported(const string &ext)
 {
+       if(is_disabled(ext))
+               return false;
+
        static set<string> extensions;
        static bool init_done = false;
 
@@ -139,6 +142,9 @@ bool is_disabled(const string &ext)
                                buffer. */
                                disabled_exts.insert("GL_NV_primitive_restart");
 
+                               // 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(get_gl_version()<Version(2, 0))