PDA

View Full Version : state tracking in ARB_VERTEX_PROGRAM



beng0d
10-03-2003, 06:17 AM
I am using ARB vertex programs on a GeForce3MX to render lighted surfaces with some non-linear projection. It works fine when only one context is used but if I use multiple windows with different contexts and share the program, the state.matrix... and state.light... are not always updated with the current context values.
The only solution I found was to delete and reload the program every time I switch the context.
Does anybody have another way to make sure the state parameter tracking is in sync with the current context ?

CatAtWork
10-03-2003, 06:37 AM
Have you called wglShareLists for the other contexts?