Vertex and Fragment programs questions

  1. Are Program Environment vars shared between multiple opengl contexts ?

  2. Do you need to resend Local parameters if they are not changed between frames?

  1. I don’t know

  2. OpengL being a state machine, the answer is clearly : no, there is no need to resend them.

  1. I’m pretty sure (although I never tested), that if you do wglsharelist, then all programs gets shared and that includes everything about them.
  1. Yes, according to the spec.

  2. No; that’s the whole point of program local parameters. Else environment parameters would be all you’d need.