did you have a chance to look at the code I sent you ?
I’ve narrowed it down to the pbuffer/copytex not liking an active vertex program.
Rob.[/b]
I think we are running with different (incompatible?) SDK versions. I had to hack on it a couple different ways to compile/link, and after I did, it cratered on create() with “this” set to NULL. As far as I can tell, you are using only fragment programs, probably that’s what you meant above. I’ll see if I can dig up some example code that works and maybe we can figure out the differences.
Just to follow up – we got to the bottom of pocketmoon’s problem. The issue was that the program was using multiple contexts sharing program objects.
Even though vertex or fragment programs are shared, it doesn’t necessarily mean that the underlying program parameters are. If your program references state belonging to a context, including those in “program environment parameters” (same as NV_vertex_program “program parameters”), those program constants need to be set up appropriately in every context using the program.
Constants declared inside a program or “program local parameters” are properties of the program itself, so should apply to all contexts using the program. Note that modifying constants in one context while a program is bound in another context is a dangerous proposition (since there’s no convenient way to synchronize between multiple contexts). There is a small warning to this effect in the ARB program specs.