PDA

View Full Version : how to disable a shader in glsl



jozko_sk
01-09-2007, 01:36 PM
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.

Komat
01-09-2007, 01:52 PM
To disable the shader simply call glUseProgramObjectARB(0).