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.

tomtrenki

05-02-2007, 11:39 AM

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