I'm seeing a larger problem with regard to the crash reported here. If you have a similar sketch and do a resize, it crashes as well. They seem to be fixed by resetting the gl in the draw.
- gl = pgl.beginPGL().gl.getGL2();
However, this doesn't always work. I have shaders where I use the gl as such:
It will crash on this regardless if I reset the gl or not.
- gl.glUseProgramObjectARB(programObject);
It will crash on this regardless if I reset the gl or not.