How to disable a shader in glsl

i have a simple problem with turning off the shader.
lets have a function like this:

    //i want to draw a teapot for example using   a shader



need to disable the shader


// then i want to draw another teapot but with normal opengl pipeline so i want to disable the current shader program but i dont now if there is any function to do it like gldisable.... or how to do it.

can anybody tells me and helps, how to do it?
thanks in advance.

To disable the shader simply call glUseProgramObjectARB(0).

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