Skip to main content
gamedev.net
🔒 Locked

Texture binding

Started by ChristophR Sep 22, 2005 at 7:31 AM 0 replies 450+ views
Original Post
ChristophR
ChristophR
Hi! I bound a texture with

glBindTexture(GL_TEXTURE_2D, textureName);
and enabled it with

glEnable(GL_TEXTURE_2D);
Afterwards I wanted to render another object without a texture and I disabled the texture with

glDisable(GL_TEXTURE_2D)
But the object appeared in the color of the first pixel of the texture I bound before. If I change the color of the first texture pixel, the object color changes too. But the texture was disabled, so how can that happen? I also tried to call glBindTexture with NULL, but this did not change anything. How can I disable the texture completely? Thanks in advance.
ChristophR
ChristophR
Ok, sorry. It was just a bug in my code.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.