PDA

View Full Version : GL_CURRENT_BIT vs. GL_COLOR_BIT vs. glGet



JCipriani2
07-16-2008, 01:57 AM
If all I want to save is the current color, is it faster to use glPushAttrib/glPopAttrib with GL_CURRENT_BIT, or GL_COLOR_BIT, or to just use glGet with GL_CURRENT_COLOR and then reset the color after?

Thanks,
Jason

Zengar
07-16-2008, 02:59 AM
Avoid glGet in any case. The best solution is to track the color in your code and reset it afterwards.