Opengl format behavior

I noticed some things that are not well documented in the opengl docs. Please correct me if I am wrong.

  • You cannot set the value to uniform if the program is not the one that opengl is currently using. This will result in an error.

  • If you set the uniformity value in program A, then switch to program B and then return to program A, the value will remain. Is it reliable?

  • It is not possible to set a uniform value to a program that is not currently being used. Is there a workaround?

+3


source to share


1 answer


  • The Direct Extension to Public Access (which is included in kernel 4.5) allows you to install a single for an unrelated program using glProgramUniform*EXT

    , and you will need to specify the program.

  • uniforms are saved for each program,

  • see 1



+5


source







All Articles