diff pytouhou/lib/opengl.pxd @ 559:1be60813f7cb

Get OpenGL ES 2.0 to work thanks to libepoxy. PCB textures will need swizzle in the shaders since BGRA isn’t natively supported on GLES.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 30 May 2014 16:40:36 +0200
parents 94725968dabb
children b8df946d394d
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd
+++ b/pytouhou/lib/opengl.pxd
@@ -52,6 +52,7 @@ cdef extern from 'epoxy/gl.h' nogil:
         GL_RGB
         GL_LUMINANCE
         GL_UNSIGNED_SHORT_5_6_5
+        GL_UNSIGNED_SHORT_4_4_4_4
         GL_UNSIGNED_SHORT_4_4_4_4_REV
 
         GL_COLOR_BUFFER_BIT
@@ -83,7 +84,7 @@ cdef extern from 'epoxy/gl.h' nogil:
         GL_FRAMEBUFFER
         GL_COLOR_ATTACHMENT0
         GL_RENDERBUFFER
-        GL_DEPTH_COMPONENT
+        GL_DEPTH_COMPONENT16
         GL_DEPTH_ATTACHMENT
         GL_FRAMEBUFFER_COMPLETE