Public bug reported:

Binary package hint: libgl1-mesa-dri

Like the title says, it seems that call in any program to push
GL_POINT_BIT attribute will cause glGetError() to return
GL_INVALID_ENUM.

I'm attaching a sample program, just compile with "gcc -lGL -lglut
ttt.c", run and observe on the console

$ ./a.out
error now: no error
error now: invalid enumerant
error now: no error
error now: invalid enumerant
....

caused by code

  printf("error now: %s\n", gluErrorString(glGetError()));
  glPushAttrib(GL_POINT_BIT);
  glPopAttrib();
  printf("error now: %s\n", gluErrorString(glGetError()));

It seems reproducible with absolutely any OpenGL program.

Other attribs seem to work fine, for example
  glPushAttrib(GL_ALL_ATTRIB_BITS);
will cause the error, but
  glPushAttrib(GL_ALL_ATTRIB_BITS & (~GL_POINT_BIT));
will work Ok. Suggesting that problem is specific to GL_POINT_BIT attribute.

This is happening with up-to-date Ubuntu 8.10. libgl1-mesa-dri version
is 7.2-1ubuntu2

It's reproducible with upstream Mesa 7.2 (on the same computer).

Hardware: netbook "MSI Wind Notebook"
(http://en.wikipedia.org/wiki/MSI_Wind_PC, the Linux edition (although I
thrown away preinstalled Suse and installed Ubuntu of course :) ).
Attaching glxinfo output.

Doesn't happen on other computer (with Radeon), tested with the same
Mesa 7.2 from upstream. So it seems it's specific to this hardware, most
likely to i915_dri.so that is used AFAIK by this card.

(There's another problem happening on MSI Wind Notebook, visible by this
sample program: the window's border is not drawn and generally the
window is sometimes not updating properly, which seem to be common to
all OpenGL programs filling the screen with only glClear. This seems
like another problem with this GPU, probably not related to this bug. It
happens with both glPushAttrib(GL_POINT_BIT) used or not. So... if you
test on actual MSI Wind Notebook, you can probably ignore this problem
(or fix it separately :) ).

** Affects: mesa (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to