Sign in to follow this  
muhkuh

tex_env question

Recommended Posts

muhkuh    163
Hi there, I'm using this on texture stage 3
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT);
glTexEnvf(GL_TEXTURE_ENV, (GLenum)GL_COMBINE_RGB_EXT, GL_MODULATE );
glTexEnvf (GL_TEXTURE_ENV, (GLenum)GL_SOURCE0_RGB_EXT, GL_PRIMARY_COLOR);
glTexEnvf (GL_TEXTURE_ENV, (GLenum)GL_OPERAND0_RGB_EXT, GL_SRC_COLOR);
glTexEnvf (GL_TEXTURE_ENV, (GLenum)GL_SOURCE1_RGB_EXT, GL_PREVIOUS);
glTexEnvf (GL_TEXTURE_ENV, (GLenum)GL_OPERAND1_RGB_EXT, GL_SRC_COLOR);
This acutally means the value of the texture set for this stage isn't needed but when I do not bind a texture to this stage it is disabled completely and the computation isn't executed. Do I really have to set a texture for this stage (dummy texture)? Thanks Markus

Share this post


Link to post
Share on other sites
Brother Bob    10344
Yes, if you don't have a valid texture bound to the texture unit, the unit is effectively disabled, as required by the specification. Even if you don't use the texture, you must still have one bound to use it.

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