Is there a way to retrieve the maximum size that can be set for a GLJPanel?
If I try to resize a GLJPanel with a very huge size (for example 10000 x 10000), as anyone can except, it fails.
That’s not a problem under windows because it only raises an OutOfMemoryException.
I can catch it and fall back to the previous size.
However, under Linux (with a Nvidia card, I didn’t test with other cards), it seems to also corrupts the GLContext.
I’ve got the excpetion: javax.media.opengl.GLException: Error making context current. Afterwards, I’m not able
to use any JOGL instructions anymore. Even with a new GLJPanel, tt always raises the previous excetion and then crashes the JVM.
I’m looking for a solution to prevent the behaviour under Linux. If I could find the maximum size for a GLJPanel, I could prevent the exceptions to appear.
Or maybe someone has already experienced such a preoblem and found a solution.
Thanks in advance,
Jean-Baptiste