diff options
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/games/jogl/GLJPanel.java | 8 | ||||
-rw-r--r-- | src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java index 155aca639..8b0c9f383 100644 --- a/src/net/java/games/jogl/GLJPanel.java +++ b/src/net/java/games/jogl/GLJPanel.java @@ -230,7 +230,13 @@ public final class GLJPanel extends JPanel implements GLDrawable { if (!hardwareAccelerationDisabled) { if (fwidth > pbufferWidth || fheight > pbufferHeight) { // Must destroy and recreate pbuffer to fit - pbuffer.destroy(); + if (pbuffer != null) { + pbuffer.destroy(); + } + if (toplevel != null) { + toplevel.dispose(); + } + isInitialized = false; if (fwidth > pbufferWidth) { pbufferWidth = getNextPowerOf2(fwidth); } diff --git a/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java index b171bd209..61d62c82b 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java @@ -177,6 +177,9 @@ public class WindowsPbufferGLContext extends WindowsGLContext { ati = true; floatMode = GLPbuffer.ATI_FLOAT; } + if (DEBUG) { + System.err.println("Using " + (ati ? "ATI" : "NVidia") + " floating-point extension"); + } } if (useFloat && ati) { |