After a little digging about through the mesa source, glPopAttib calls
_mesa_PointParameterfEXT(GL_POINT_SPRITE_COORD_ORIGIN, ...)  if the
NV_point_sprite  OR ARB_point_sprite open glextensions exist.

However _mesa_PointParameterfvEXT implementation only allows
GL_POINT_SPRITE_COORD_ORIGIN if the ARB_point_sprite extension exists.
The GL_INVALID_ENUM error is set otherwise. It does not allow it if only
NV_point_sprite is defined.

On my system I only have NV_point_sprite so this calls the PointParam
method, but then causes the error to be set as I do not have
ARB_point_sprite.

In the latest mesa git repo, the _mesa_PointParameterfvEXT  also checks
for NV_point_sprite.

So the fix is to change _mesa_PointParameterfvEXT() in
src/mesa/main/points.c to allow NV_point_sprite.

-- 
glPushAttrib(GL_POINT_BIT) causes GL error GL_INVALID_ENUM on i915_dri.so
https://bugs.launchpad.net/bugs/312830
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to