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
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
Avoid glGet in any case. The best solution is to track the color in your code and reset it afterwards.