How to disable a shader in glsl

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

display()
{
    //i want to draw a teapot for example using   a shader

glUseProgramObjectARB(p);

glutSolidTeapot(0.5);

need to disable the shader

glutSolidTeapot(0.5);

// 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.