[PyOpenGL-Devel] [ pyopengl-Bugs-2882405 ] glGetActiveUniform broken.
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2009-11-07 07:01:38
|
Bugs item #2882405, was opened at 2009-10-20 11:11 Message generated for change (Settings changed) made by mcfletch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2882405&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: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Vickenty Fesunov (kent_turbo) Assigned to: Mike C. Fletcher (mcfletch) Summary: glGetActiveUniform broken. Initial Comment: glGetActiveUniform wrapper in GL/VERSION/GL_2_0.py uses size variable to derive name length, which is incorrent. That variable contains size of the uniform itself, not the name length. Name length is returned separately in length parameter, which is not used in the wrapper. It also calls glGetShaderiv with GL_OBJECT_ACTIVE_UNIFORMS and GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH, which results in invalid operation exception. The right entry-point for this would be glGetProgramiv. This problem occurs on both Intel (Mesa 7.6 DRI) and NVidia (174.14.09) hardware. Unfortunately, I can test it only on Linux. Attached script fails on a unpatched fresh bzr branch of the lp:pyopengl, and works correctly with patch. ---------------------------------------------------------------------- >Comment By: Mike C. Fletcher (mcfletch) Date: 2009-11-07 02:01 Message: Thank you. Patch is integrated into trunk and will be released with the first beta. I've applied similar code to the ARB version of the operation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2882405&group_id=5988 |