-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.9.2
-
None
QOpenGLFunctions.glVertexAttribPointer takes a Shiboken.VoidPtr for the ptr attribute but the type hints say it takes an int.
If you try calling this function with an int it raises an exception.
The simple solution is to change the type hint to match the behaviour.
# Current (incorrect) type hint def glVertexAttribPointer(self, indx: int, size: int, type: int, normalized: int, stride: int, ptr: int, /) -> None: ... # Correct type hint def glVertexAttribPointer(self, indx: int, size: int, type: int, normalized: int, stride: int, ptr: Shiboken.VoidPtr, /) -> None: ...
For Gerrit Dashboard: PYSIDE-3185 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
677422,1 | pyi: use VoidPtr for the last argument in glVertexAttribPointer | dev | pyside/pyside-setup | Status: NEW | +2 | 0 |