From e9b806b277428b74a51afb5e076afe7dfabb26d4 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 22 Jun 2005 08:05:55 +0000 Subject: Fixed Issue 166: Memory leak with ATI Mobility Radeon 9700 Worked around memory leak in ATI's OpenGL drivers by adding system property -Djogl.GLContext.nofree which users can specify on the command line. There is no good general-purpose workaround for this bug which works well on all hardware and in all kinds of applications. Issues may remain if this workaround is used and if the GLCanvas is removed and re-added to its parent container. Use at your own risk. Also cleaned up Windows ChoosePixelFormat code path; made sure PIXELFORMATDESCRIPTOR was completely filled out. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@306 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/GLContext.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net/java/games/jogl/impl/GLContext.java') diff --git a/src/net/java/games/jogl/impl/GLContext.java b/src/net/java/games/jogl/impl/GLContext.java index 0e20a5691..a70b195ac 100644 --- a/src/net/java/games/jogl/impl/GLContext.java +++ b/src/net/java/games/jogl/impl/GLContext.java @@ -46,6 +46,7 @@ import net.java.games.gluegen.runtime.*; public abstract class GLContext { protected static final boolean DEBUG = Debug.debug("GLContext"); protected static final boolean VERBOSE = Debug.verbose(); + protected static final boolean NO_FREE = Debug.isPropertyDefined("jogl.GLContext.nofree"); static { NativeLibLoader.load(); -- cgit v1.2.3