glCompressedTexImage2D not working (with a fix)
Brought to you by:
mcfletch
Hi,
I want to reprort bug involving calling glCompressedTexImage2D.
Currently the function does not work on pyopengl 3.1.0
I prepared a fix for it.
Basically there is no ArrayType on OpenGL.arrays.
There is instead ArrayDataType.
diff --git a/GL/images.py b/GL/images.py
index b94349c..547f895 100644
--- a/GL/images.py
+++ b/GL/images.py
@@ -497,7 +497,7 @@ class CompressedImageConverter( object ):
def call( self, pyArgs, index, wrappedOperation ):
"""Create a data-size measurement for our image"""
arg = pyArgs[ self.dataIndex ]
- return arrays.ArrayType.arrayByteCount( arg )
+ return arrays.ArrayDatatype.arrayByteCount( arg )