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 3 of 3

Thread: glPushAttrib()/glPopAttrib() and uniforms

  1. #1
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Germany
    Posts
    293

    glPushAttrib()/glPopAttrib() and uniforms

    hi,
    i tried glPushAttrib() with GL_CURRENT_BIT and GL_ENABLE_BIT to push and pop shader programs. it works fine with nvidia 61.12 forceware drivers. but this does not work with bound uniforms to the programs. will there be a way to get this work or is it normal, that it does not work? the spec doesn't say anything about glPush/PopAttrib.

    thx

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,453

    Re: glPushAttrib()/glPopAttrib() and uniforms

    The answer to this lies in chapter 2.17 of the shader objects spec.
    It describes the necessary state to implement program objects and the uniform values are not part of it.

  3. #3
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Germany
    Posts
    293

    Re: glPushAttrib()/glPopAttrib() and uniforms

    got it working (was a stupid mistake). can anyone try this on a ATi implementation? with nvidia it works to push/pop programs with their bound uniform values (and yes, they were in the same location ).

Posting Permissions

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