PDA

View Full Version : Vertex and Fragment programs questions



ToolTech
07-03-2003, 10:37 PM
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?

vincoof
07-04-2003, 02:31 AM
1. I don't know

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

V-man
07-04-2003, 07:23 AM
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.

jwatte
07-04-2003, 09:31 AM
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.