glTexImage does not accept the external pixel data type (last parameter of glTexImage) GL_UNSIGNED_INT_24_8 for GL_DEPTH24_STENCIL8 textures. Get a key error in images.TYPE_TO_ARRAYTYPE
Image-type registrations were missing for the 3 variants (NV, EXT and ARB). Added in bzr head. Thanks. Example registration should you wish to do a work-around (note, don't have any test case, so have not been able to test that this does what it's supposed to do):
--- OpenGL/GL/ARB/framebuffer_object.py 2009-08-30 02:28:09 +0000
+++ OpenGL/GL/ARB/framebuffer_object.py 2009-11-14 19:48:04 +0000
@@ -30,4 +30,9 @@
if framebuffers is None:
framebuffers = arrays.GLuintArray.asArray( n )
n = arrays.GLuintArray.arraySize( framebuffers )
- return baseOperation( n, framebuffers )
\ No newline at end of file
+ return baseOperation( n, framebuffers )
+
+# Setup the GL_UNSIGNED_INT_24_8 image type
+from OpenGL import images
+images.TYPE_TO_ARRAYTYPE[ GL_UNSIGNED_INT_24_8 ] = GL_UNSIGNED_INT
+images.TIGHT_PACK_FORMATS[ GL_UNSIGNED_INT_24_8 ] = 4
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Image-type registrations were missing for the 3 variants (NV, EXT and ARB). Added in bzr head. Thanks. Example registration should you wish to do a work-around (note, don't have any test case, so have not been able to test that this does what it's supposed to do):
--- OpenGL/GL/ARB/framebuffer_object.py 2009-08-30 02:28:09 +0000
+++ OpenGL/GL/ARB/framebuffer_object.py 2009-11-14 19:48:04 +0000
@@ -30,4 +30,9 @@
if framebuffers is None:
framebuffers = arrays.GLuintArray.asArray( n )
n = arrays.GLuintArray.arraySize( framebuffers )
- return baseOperation( n, framebuffers )
\ No newline at end of file
+ return baseOperation( n, framebuffers )
+
+# Setup the GL_UNSIGNED_INT_24_8 image type
+from OpenGL import images
+images.TYPE_TO_ARRAYTYPE[ GL_UNSIGNED_INT_24_8 ] = GL_UNSIGNED_INT
+images.TIGHT_PACK_FORMATS[ GL_UNSIGNED_INT_24_8 ] = 4
This is part of the final release that should be going out today.