aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-02-04 08:25:49 +0000
committerKenneth Russel <[email protected]>2005-02-04 08:25:49 +0000
commit3da4f1e709572f809c7247825d384f32698fc413 (patch)
tree7c5ebd0cfc6c121e5dcac808db5e2c43f18d04da
parente748f469a21a4e9cd5ae2421f594bd88afd42bec (diff)
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
-rw-r--r--src/net/java/games/jogl/GLJPanel.java3
1 files changed, 2 insertions, 1 deletions
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;