problem with glBindTexture()

when i call glBindTexture() for 1st texture unit sometimes it’s not bind until i (alternatively):

  • repeat the same function call glBindTexture()
  • or call glEnable(GL_TEXTURE_2D), which i don’t understand at all, because it’s all the time enabled

that doesn’t happen when i don’t use multitexturing
any ideas what could it be?

thx for help

[This message has been edited by MickeyMouse (edited 04-08-2002).]

When you use multitexturing make sure you call glActiveTextureARB before you
bind texture.For example, if you use two textures you would bind them like this

glBindTexture(GL_TEXTURE_2D, first_texture);
glBindTexture(GL_TEXTURE_2D, second_texture);

After that you can draw stuff but use glMultiTexCoord2fARB function for every
active texture unit.
Hope this helps.

[This message has been edited by mproso (edited 04-08-2002).]