[PyOpenGL-Devel] [ pyopengl-Bugs-1579715 ] Probable int/int32 problem with version 3.0.0a4
Brought to you by:
mcfletch
|
From: SourceForge.net <no...@so...> - 2006-10-18 13:57:55
|
Bugs item #1579715, was opened at 2006-10-18 06:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1579715&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 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Probable int/int32 problem with version 3.0.0a4 Initial Comment: With version 3.0.0a4, compiled on Linux 64 bits, lesson18 in Demo/NeHe dies with: Traceback (most recent call last): File "lesson18.py", line 302, in ? main() File "lesson18.py", line 294, in main InitGL(640, 480) File "lesson18.py", line 106, in InitGL LoadTextures() File "lesson18.py", line 76, in LoadTextures glBindTexture(GL_TEXTURE_2D, textures[0]) # 2d texture (x and y size) ctypes.ArgumentError: argument 2: exceptions.TypeError: int expected instead of numpy.int32 instance This may suggest that an explicit signature with int32 is needed (at least to accommodate 64 bits architectures, since 32 bits architectures will find both int and int32 equivalent). A fix can possibly made in several places, but I would think that changing the signature of glBindTexture for its secnd argument to int32 is what is needed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1579715&group_id=5988 |