I’ve recently converted my jogl application from using a GLCanvas to using a GLJPanel. My application uses GLSL shaders and basic textures, and I never had any problems with this before the conversion. However, with the new GLJPanel version, I have an annoying problem that keeps occurring whenever I resize the window. Somehow, my shaders seem to get invalidated and are no longer active after the resize: my triangles get drawn using the GL color instead of the procedural texture. This never happened for the GLCanvas version.
My question is simple: What am I doing wrong? What do I have to do to make sure that my shaders will continue to work after the resize? Surely I do not have to rebuild them again?
This is my post to this forum and I am fairly new to jogl and shaders (although not new to OpenGL), so I apologize if this has been answered elsewhere. I am running Windows and JDK 1.6.0 and the jogl-1.0.0 release. Thanks in advance.