Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: how to disable a shader in glsl

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2006
    Location
    Slovakia
    Posts
    3

    how to disable a shader in glsl

    hi!
    i have a simple problem with turning off the shader.
    lets have a function like this:
    Code :
    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.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: how to disable a shader in glsl

    To disable the shader simply call glUseProgramObjectARB(0).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •