On 25/12/06, Stefan Dösinger stefandoesinger@gmx.at wrote:
Why are you not using glPushAttrib / glPopAttrib?
The relevant bit to push would be GL_TEXTURE_BIT, but that pushes the bindings for all texture units and pretty much all related state, ie glTexParameter & glTexEnv state. Since we're only interested in the texture binding, I doubt it would be more efficient, and we would have to make sure the texture isn't currently bound to some unit.