Login  Register

Memory leak in JOGL 2

Posted by gouessej on Oct 25, 2010; 11:02am
URL: https://forum.jogamp.org/Memory-leak-in-JOGL-2-tp1766697.html

Hi!

I have just compiled JOGL 2 from source and I have a memory leak. GLException instances containing the following message are constantly created:
Java2D OpenGL pipeline not active (or necessary support not present)

What can I do? I can enable the OpenGL pipeline on Linux but it might cause some problems on Windows. This source code is the root cause of this problem:
private static void checkActive() {
    if (!isOGLPipelineActive()) {
      throw new GLException("Java2D OpenGL pipeline not active (or necessary support not present)");
    }
  }

Couldn't we create this instance once only and throw it each time?
Julien Gouesse | Personal blog | Website