Jump to content
  • Advertisement
Sign in to follow this  
Basiror

Question about glTexEnv

This topic is 4161 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 always wondered whether I have to reset this parameter everytime I bind a new texture, or if it is reset automatically when you bind the texture for rendering init: glGenTextures(...); glBindTexture(); glTexEnv(....); option a) glBindTexture(); option b) glBindTexture(); glTexEnv(...); thx in advance

Share this post


Link to post
Share on other sites
Advertisement
glTexEnv is a texture unit setting, which means it affects the currently active texture unit. The texture bound have nothing to do with it. If a particular texture need a particular combiner setup, you need to set it every time you bind the texture.

Share this post


Link to post
Share on other sites
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!