View Full Version : How to get current texture binding

08-27-2000, 02:23 PM
The April 2000 MSDN reference for the glBindTexture states that the glGetIntegerv function can be passed GL_TEXTURE_2D_BINDING to retrieve a handle to the currently bound 2D texture. However, my OpenGL 1.2 headers to not declare GL_TEXTURE_2D_BINDING, just GL_TEXTURE_2D and GL_TEXTURE_2D_BINDING_EXT.

How do I get the current texture binding so I can bind another texture and then restore the original binding? What is the value for GL_TEXTURE_2D_BINDING, or was this a typeo?

09-02-2000, 12:11 PM
Anybody know how to get the current texture binding?