How to disable shaders?

I want to render the scene with 2 passes. In the first pass, I want to render with shader. But in the second pass, I want to render the scene with fixed function. So, how to disable the shader? I use glDeleteObject, but it does not work.

glUseProgramObject(0);

If you mix shaders and fixed function in multipass rendering, make sure to remember that your shaders all use ftransform() to assure position invariance.

Yes, thanks!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.