[PyOpenGL-Devel] [ pyopengl-Bugs-2987754 ] glGetIntegerv(GL_SMOOTH_LINE_WIDTH_RANGE) result changed
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2010-05-11 14:41:15
|
Bugs item #2987754, was opened at 2010-04-15 16:38 Message generated for change (Comment added) made by cfrb 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: Christopher Frauenberger (cfrb) Date: 2010-05-11 15:41 Message: in the latest version 3.0.1 for windows, both calls for GL_LINE_WIDTH_RANGE and GL_SMOOTH_LINE_WIDTH_RANGE are broken and return a single integer. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2010-04-16 04:37 Message: It was definitely a bug. I've fixed the dimension declarations in bzr head and the result should show up in the next release (3.0.2). ---------------------------------------------------------------------- Comment By: Mary Ellen Foster () Date: 2010-04-15 16: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 |