Sign in to follow this  

Question about glTexEnv

This topic is 3848 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
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

This topic is 3848 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this