PDA

View Full Version : Problem when glsl program is disabled



whooww
11-01-2007, 02:34 PM
I want to set the glsl program for multiple texture blending and for the rest, drawing vertex and polygon, I still want to use the normal way. So,
I create the shader and draw multiple textures. It works fine.
But the problem is after I disable the glsl program by set
glUseProgram(0);
And then draw ploygon with blending function as:
glEnable(GL_BLEND);
glBlendFunction();
drawpolygon();

Then all those polygon's color is gone although the blending still work.
I read the documents and it says that the glsl shader will disable the color sum.
But my question is how come the color is still gone even I already disable the shader program?

niko
11-05-2007, 12:54 AM
Same problem here. On ati/amd hardware after changing back to fixed pipe I have to add

glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, 0);

and repeat this for all texture units I've used.

/niko