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.

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

Perfect, thanks!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.