[PyOpenGL-Devel] [ pyopengl-Bugs-2987754 ] glGetIntegerv(GL_SMOOTH_LINE_WIDTH_RANGE) result changed
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2010-04-15 15:50:36
|
Bugs item #2987754, was opened at 2010-04-15 15:38 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2987754&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: Mary Ellen Foster () Assigned to: Mike C. Fletcher (mcfletch) Summary: glGetIntegerv(GL_SMOOTH_LINE_WIDTH_RANGE) result changed Initial Comment: In some code that I work with, we call glGetIntegerv(GL_SMOOTH_LINE_WIDTH_RANGE). This used to return an array, so we would later do essentially lineWidth[1] to get the max width and use that. With PyOpenGL on Windows, that seems now to return a single integer -- at least, when we try to index it, we get an error like this: IndexError: invalid index to scalar variable. Is this expected? Where can we get the old value? The single value that's returned now seems to be only the low end of the range ... ---------------------------------------------------------------------- >Comment By: Mary Ellen Foster () Date: 2010-04-15 15:50 Message: Note that changing to use GL_LINE_WIDTH_RANGE (which should in theory be an alias) seems to work on both 3.0.0 and 3.0.1. I suspect there's a bug in glget.py where GL_SMOOTH_LINE_WIDTH_RANGE is defined to have dimensions (1,) ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2987754&group_id=5988 |