-
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.
-
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.
-
Re: GLSL Uniforms maintained across binds?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules