[ pyopengl-Bugs-2897786 ] glTexImage

"SourceForge.net" <[email protected]> Mon, 22 Feb 2010 20:48:21 +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: Closed
>Resolution: Fixed
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: 2010-02-22 15:48

Message:
This is part of the final release that should be going out today.

----------------------------------------------------------------------

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net