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: GLSL Uniforms maintained across binds?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2006
    Posts
    21

    GLSL Uniforms maintained across binds?

    Hello,
    I am wondering if I bind a GLSL program, set some uniforms to some values, unbind the program, perhaps load others, and then eventually rebind the original, will my uniform state variables have their original values maintained? Are those uniforms part of the saved off context? Thanks.

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2006
    Location
    South Tyrol
    Posts
    20

    Re: GLSL Uniforms maintained across binds?

    Yes.
    Uniform variables are program object-specific state, so they will retain their values until you re-link the program.

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2006
    Posts
    21

    Re: GLSL Uniforms maintained across binds?

    Perfect, thanks!

Posting Permissions

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