Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

glPushAttrib(GL_ENABLE_BIT) --> glDisable(GL_LIGHTING)

51 views
Skip to first unread message

thomas helfenstein

unread,
Jan 27, 2004, 9:45:59 AM1/27/04
to
Hello,

I have a strange behavior with following code only on ATI-graphiccards.

glPushAttrib (GL_ENABLE_BIT);
glDisable(GL_LIGHTING);
glBegin (GL_POINTS);
glVertex.....
glVertex.....
..
..
glEnd();


After this statement, my lighting isn't anymore correct. it's not
disabled but something else has changed. when i call glPushAttrib with
GL_LIGHTING_BIT everything is ok.
i read in the opengl reference that GL_ENABLE_BIT and also
GL_LIGHTING_BIT sould save the GL_LIGHTING flag on the attribute
stack.... so, there souldn't be any differnets????

I'am don't sure if is a driver-bug or something else.

Thanks, thomas

Andy V

unread,
Jan 27, 2004, 8:51:36 PM1/27/04
to
thomas helfenstein wrote:

If, as you say, it is only on ATI graphics cards, it sounds like a bug
in their driver. You should report it to them.

--
Andy V

0 new messages