PDA

View Full Version : unbinding textures



blt8
04-13-2002, 11:14 PM
is there a way to unbind textures such that there will be no texture in use when i draw objects? thanks in advance.

zeckensack
04-13-2002, 11:20 PM
glDisable(GL_TEXTURE_2D)
or
glBindTexture(GL_TEXTURE_2D,0)

zed
04-14-2002, 01:36 AM
dont use glBindTexture(GL_TEXTURE_2D,0)
its not the same thing as disabling textures + can in fact give u sideeffects

zeckensack
04-14-2002, 01:15 PM
Yup. I agree. Texture '0' functions just like all the others, before the introduction of texture objects, it was the only thing you had (ie you couldn't bind any others). Sorry for that bs.

Addendum: to 'unbind' a texture, you have to bind another, so I was still a little bit right http://www.opengl.org/discussion_boards/ubb/wink.gif