diff options
author | Kenneth Russel <[email protected]> | 2005-08-17 19:46:14 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-08-17 19:46:14 +0000 |
commit | 25e37b6d9e27a5d3dc8caed49087f1a1e4904c4e (patch) | |
tree | 0a846df776b5e76f97783b26628045af761a77dc | |
parent | 08d7112b2948724e63881bf0cd5bb6d5f000248a (diff) |
Fixed bug in makeCurrent in new external context implementations
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@348 232f8b59-042b-4e1e-8c03-345bb8c30851
-rwxr-xr-x | src/net/java/games/jogl/impl/windows/WindowsExternalGLContext.java | 1 | ||||
-rwxr-xr-x | src/net/java/games/jogl/impl/x11/X11ExternalGLContext.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsExternalGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsExternalGLContext.java index 642052c8c..119f9a9da 100755 --- a/src/net/java/games/jogl/impl/windows/WindowsExternalGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsExternalGLContext.java @@ -57,6 +57,7 @@ public class WindowsExternalGLContext extends WindowsGLContext { protected int makeCurrentImpl() throws GLException { if (firstMakeCurrent) { + firstMakeCurrent = false; return CONTEXT_CURRENT_NEW; } return CONTEXT_CURRENT; diff --git a/src/net/java/games/jogl/impl/x11/X11ExternalGLContext.java b/src/net/java/games/jogl/impl/x11/X11ExternalGLContext.java index 5de4228d2..f2e825417 100755 --- a/src/net/java/games/jogl/impl/x11/X11ExternalGLContext.java +++ b/src/net/java/games/jogl/impl/x11/X11ExternalGLContext.java @@ -63,6 +63,7 @@ public class X11ExternalGLContext extends X11GLContext { protected int makeCurrentImpl() throws GLException { if (firstMakeCurrent) { + firstMakeCurrent = false; return CONTEXT_CURRENT_NEW; } return CONTEXT_CURRENT; |