]> git.tdb.fi Git - libs/gl.git/blobdiff - gl.fixes.xml
Add functions for setting arrays of 2x2 and 3x3 matrix uniforms
[libs/gl.git] / gl.fixes.xml
index e6e14b38e400a8b2aa5caed85ba62d5085e27932..8b84a4fb963725468e331f2c836c11f8b34c5951 100644 (file)
         <!-- The name got changed but as far as I can tell they mean the same
         thing. -->
         <enum value="0x8CD4" name="GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT" alias="GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER"/>
+
+        <!-- Add an alias to improve desktop OpenGL compatibility even though
+        this was not promoted to core in OpenGL ES. -->
+        <enum value="0x81A7" name="GL_DEPTH_COMPONENT32_OES" alias="GL_DEPTH_COMPONENT32"/>
     </enums>
 
     <feature api="gl" name="GL_VERSION_1_4" number="1.4">
         </require>
     </feature>
 
+    <feature api="gles2">
+        <require>
+            <!-- Annotate support for certain things in OpenGL ES.  Don't set
+            version because they are only available through extensions. -->
+            <enum name="GL_DEPTH_COMPONENT32"/>
+            <enum name="GL_BUFFER_ACCESS"/>
+            <command name="glBindFragDataLocation"/>
+            <command name="glMapBuffer"/>
+        </require>
+    </feature>
+
+    <feature api="gles2" name="GL_ES_VERSION_3_0" number="3.0">
+        <require>
+            <!-- These are found in the 3.0 spec. -->
+            <enum name="GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER"/>
+            <enum name="GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER"/>
+        </require>
+    </feature>
+
     <extensions>
-        <!-- Put GL_RED here for the benefit of OpenGL ES. -->
-        <extension name="GL_ARB_texture_rg" supported="gl|glcore">
+        <extension name="GL_ARB_depth_texture" supported="gl">
             <require>
-                <enum name="GL_RED"/>
+                <!-- The base GL_DEPTH_COMPONENT format was introduced for
+                other purposes before it could be used for textures. -->
+                <enum name="GL_DEPTH_COMPONENT"/>
             </require>
         </extension>
 
-        <!-- And the remaining color components here. -->
-        <extension name="GL_ARB_texture_swizzle" supported="gl|glcore">
+        <extension name="GL_ARB_texture_rg" supported="gl|glcore">
             <require>
-                <enum name="GL_GREEN"/>
-                <enum name="GL_BLUE"/>
-                <enum name="GL_ALPHA"/>
+                <!-- GL_RED is mentioned in the extension spec. -->
+                <enum name="GL_RED"/>
             </require>
         </extension>
     </extensions>