diff options
Diffstat (limited to 'src/net/java')
-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; |