Sign in to follow this  
Basiror

Question about glTexEnv

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

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