PDA

View Full Version : How to get current texture binding



skippyj777
08-27-2000, 03: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?

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