summaryrefslogtreecommitdiffstats
path: root/src/net/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java')
-rwxr-xr-xsrc/net/java/games/jogl/impl/windows/WindowsExternalGLContext.java1
-rwxr-xr-xsrc/net/java/games/jogl/impl/x11/X11ExternalGLContext.java1
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;