[PyOpenGL-Devel] [ pyopengl-Bugs-2882405 ] glGetActiveUniform broken.
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2009-10-20 15:11:49
|
Bugs item #2882405, was opened at 2009-10-20 19:11 Message generated for change (Tracker Item Submitted) made by kent_turbo 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: Open Resolution: None 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2882405&group_id=5988 |