]> git.tdb.fi Git - libs/gl.git/blobdiff - gl.fixes.xml
Migrate to the new XML-based OpenGL API registry
[libs/gl.git] / gl.fixes.xml
diff --git a/gl.fixes.xml b/gl.fixes.xml
new file mode 100644 (file)
index 0000000..39ec23e
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<registry>
+    <!-- The gl.xml file does not contain enough information to make all the
+    connections between extension and core functions correctly.  This file
+    attempts to rectify these problems. -->
+
+    <commands>
+        <!-- The EXT versions allow user-generated names; core versions don't.
+        Since we use GL-generated names, it's safe to alias them. -->
+        <command>
+            <proto><name>glBindFramebufferEXT</name></proto>
+            <alias name="glBindFramebuffer" />
+        </command>
+        <command>
+            <proto><name>glBindRenderbufferEXT</name></proto>
+            <alias name="glBindRenderbuffer" />
+        </command>
+
+        <!-- ARB_shader_objects function names got changed when promoted to
+        core -->
+        <command>
+            <proto><name>glDeleteObjectARB</name></proto>
+            <alias name="glDeleteShader" />
+            <alias name="glDeleteProgram" />
+        </command>
+        <command>
+            <proto><name>glGetInfoLogARB</name></proto>
+            <alias name="glGetShaderInfoLog" />
+            <alias name="glGetProgramInfoLog" />
+        </command>
+        <command>
+            <proto><name>glGetObjectParameterivARB</name></proto>
+            <alias name="glGetShaderiv" />
+            <alias name="glGetProgramiv" />
+        </command>
+    </commands>
+
+    <feature api="gl" name="MSPGL_REMOVE">
+        <remove>
+            <!-- These have no counterparts in the core version of
+            ARB_shader_objects. -->
+            <command name="glGetHandleARB" />
+            <command name="glGetObjectParameterfvARB" />
+
+            <!-- Ignore this, as it comes from ARB_vertex_program and I'm not
+            sure if it works with ARB_shader_objects. -->
+            <command name="glIsProgramARB" />
+        </remove>
+    </feature>
+
+    <extensions>
+        <extension name="GL_ARB_uniform_buffer_object" supported="gl">
+            <require>
+                <command name="glBindBufferRange" />
+                <command name="glBindBufferBase" />
+            </require>
+        </extension>
+    </extensions>
+</registry>