diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLExternalContext.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/egl/EGLExternalContext.java | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLExternalContext.java b/src/jogl/classes/jogamp/opengl/egl/EGLExternalContext.java index da8fb519d..4685e8bf1 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLExternalContext.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLExternalContext.java @@ -36,11 +36,11 @@ package jogamp.opengl.egl; import javax.media.opengl.*; + import jogamp.opengl.*; import javax.media.nativewindow.*; public class EGLExternalContext extends EGLContext { - private GLContext lastContext; public EGLExternalContext(AbstractGraphicsScreen screen) { super(null, null); @@ -50,29 +50,6 @@ public class EGLExternalContext extends EGLContext { } @Override - public int makeCurrent() throws GLException { - // Save last context if necessary to allow external GLContexts to - // talk to other GLContexts created by this library - GLContext cur = getCurrent(); - if (cur != null && cur != this) { - lastContext = cur; - setCurrent(null); - } - return super.makeCurrent(); - } - - @Override - public void release() throws GLException { - super.release(); - setCurrent(lastContext); - lastContext = null; - } - - @Override - protected void makeCurrentImpl() throws GLException { - } - - @Override protected void releaseImpl() throws GLException { } |