[ pyopengl-Bugs-2897786 ] glTexImage
"SourceForge.net" <[email protected]> Sun, 15 Nov 2009 00:14:08 +0000
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2897786, was opened at 2009-11-14 14:25
Message generated for change (Comment added) made by mcfletch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2897786&group_id=5988
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GL
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: glTexImage
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Mike C. Fletcher (mcfletch)
Date: 2009-11-14 19:14
Message:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2897786&group_id=5988
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net