#223 glTexImage

closed-fixed
GL (74)
5
2010-02-22
2009-11-14
Anonymous
No

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

Discussion

  • 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

     
    • status: open --> closed-fixed
     
  • This is part of the final release that should be going out today.