[PyOpenGL-Users] Error using glCompressedTexImage2D
Brought to you by:
mcfletch
From: Nathen H. <nat...@gm...> - 2017-02-04 00:03:00
|
Hello, I am receiving the following error when attempting to load bytes using glCompressedTexImage2D as the last argument, referenced as "data" in the docs. AttributeError: ("'module' object has no attribute 'ArrayType'", 'Failure in cConverter <OpenGL.GL.images.CompressedImageConverter object at 0x10232d050>', (GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, 32, 32, 0, 1024), 6, <OpenGL.platform.baseplatform.glCompressedTexImage2D object at 0x10232b7e8>) I have tried to load the data as bytes (using the built-in python bytes function), bytearray (builtin function) and simply as read from the file. The error is identical for all three approaches. Any thoughts on how to remediate this? With Thanks! Nathen Hinson |