[ pyopengl-Bugs-2882405 ] glGetActiveUniform broken.
"SourceForge.net" <[email protected]> Tue, 20 Oct 2009 15:11:49 +0000
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net