summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-08-13 06:50:04 +0000
committerKenneth Russel <[email protected]>2003-08-13 06:50:04 +0000
commitc6cadbbd676b205c82c4ce1de6da37faba67dc22 (patch)
treea5a9d08cf624487f5d8b8dc086959475fbf8d887 /src/net/java/games/jogl/impl
parent5720938942d9ac43776ba77f357e3976fb9b3b23 (diff)
Fixed bug in offscreen contexts' pending resize logic pointed out by
GKW on community.java.net/games JOGL forum. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@52 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java2
-rw-r--r--src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java
index e26060b65..ef1c9511f 100644
--- a/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java
@@ -104,7 +104,7 @@ public class WindowsOffscreenGLContext extends WindowsGLContext {
protected synchronized boolean makeCurrent(Runnable initAction) throws GLException {
if (pendingOffscreenResize) {
- if (pendingOffscreenWidth != width || pendingOffscreenWidth != height) {
+ if (pendingOffscreenWidth != width || pendingOffscreenHeight != height) {
if (hglrc != 0) {
destroy();
}
diff --git a/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java b/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java
index 727c8f23d..6d4557407 100644
--- a/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java
@@ -111,7 +111,7 @@ public class X11OffscreenGLContext extends X11GLContext {
protected synchronized boolean makeCurrent(Runnable initAction) throws GLException {
ensureDisplayOpened();
if (pendingOffscreenResize) {
- if (pendingOffscreenWidth != width || pendingOffscreenWidth != height) {
+ if (pendingOffscreenWidth != width || pendingOffscreenHeight != height) {
if (context != 0) {
destroy();
}