Menu

#272 glCompressedTexImage2D not working (with a fix)

OpenGLContext v2.0
open
nobody
None
9
2017-12-02
2017-12-02
karthaxx
No

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 )

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.