Domingo Fiesta Segura wrote:
El Viernes, 13 de Febrero de 2004 16:22, Brian Paul escribió:

No, not glPushAttrib().  glPopAttrib() is where the problem probably
occurs.


Sorry, my mistake O:-)


Great.


I attach a very stupid program. It draws two cubes (one big blue, and another red small). Press 'r' to rotate both. I use glPushAttrib(GL_CURRENT_BIT)/glPopAttrib() to save/restore the current color. I've successfully tested it with nvidia drivers (the big cube remains being blue). When I try on my ATI Radeon Mobility (iBook 2.2) the big cube starts blue, but once you rotate goes red (and it shouldn't).

I just hope it helps.


------------------------------------------------------------------------


/* glPushAttrib(), glPopAttrib() tiny test */
<snip>
I've just tested this demo here (r200 driver) and it works fine (the big cube remains blue, the red remains red).
I'm not sure, but until very recently (5 days or so ago) there were some bugs in both the radeon and r200 driver with respects to materials and lights not always being updated correctly. Maybe this was the reason for this problem.


Roland


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to