Jump to content
  • Advertisement
Sign in to follow this  
ChristophR

Texture binding

This topic is 4750 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!