]> git.tdb.fi Git - libs/gl.git/commitdiff
OpenGL ES compatibility fixes
authorMikko Rasa <tdb@tdb.fi>
Sun, 10 Sep 2017 11:25:29 +0000 (14:25 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 10 Sep 2017 11:25:29 +0000 (14:25 +0300)
gl.fixes.xml
source/gl.h

index bb149bd17282e6dbab7e3e9f3e00acdcbd0b7bab..a2271d302f44a69c332c84e5ca98e15eb90d573f 100644 (file)
             </require>
         </extension>
 
+        <!-- And the remaining color components here. -->
+        <extension name="GL_ARB_texture_swizzle" supported="gl|glcore">
+            <require>
+                <enum name="GL_GREEN" />
+                <enum name="GL_BLUE" />
+                <enum name="GL_ALPHA" />
+            </require>
+        </extension>
+
         <extension name="GL_MSP_legacy_features" supported="gl">
             <require>
                 <command name="glEnableClientState" />
         <extension name="GL_MSP_texture1D" supported="gl">
             <require>
                 <command name="glTexImage1D" />
+                <command name="glTexSubImage1D" />
                 <enum name="GL_TEXTURE_1D" />
             </require>
         </extension>
index d558706cb1e000858b6e9006e83200679b25c308..9a7cb9cd88a338aaf44582dac1a2b65fbdda969d 100644 (file)
@@ -13,6 +13,7 @@
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>
 typedef double GLdouble;
+typedef long long GLint64;
 #else
 #ifdef WIN32
 #include <windows.h>