From 3da4f1e709572f809c7247825d384f32698fc413 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 4 Feb 2005 08:25:49 +0000 Subject: Issue 44: Add pbuffer-based GLJPanel implementation Enabled hardware acceleration for GLJPanel by default after testing on Windows and Linux platforms. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@211 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/GLJPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java index b22f91b58..f7e7fe6db 100644 --- a/src/net/java/games/jogl/GLJPanel.java +++ b/src/net/java/games/jogl/GLJPanel.java @@ -86,7 +86,8 @@ public final class GLJPanel extends JPanel implements GLDrawable { private int glType; // Implementation using pbuffers - private static boolean hardwareAccelerationDisabled = true; + private static boolean hardwareAccelerationDisabled = + Debug.isPropertyDefined("jogl.gljpanel.nohw"); private boolean pbufferInitializationCompleted; private GLPbuffer pbuffer; private int pbufferWidth = 256; -- cgit v1.2.3