glGetIntegerv(GL_SMOOTH_LINE_WIDTH_RANGE) result changed
Brought to you by:
mcfletch
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 ...
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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,) ...
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).
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.