From: Reino Ruusu Date: Mon, 25 May 2020 09:54:40 +0000 (+0300) Subject: Remove misplaced call to GLContext.makeCurrent() X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F4246%2F1;p=simantics%2F3d.git Remove misplaced call to GLContext.makeCurrent() gitlab #129 Change-Id: I2903822a9ea9536bbabea3843f6b86d9588f52cb (cherry picked from commit 94aaaa007f814ab2966d32e1e6ba744206ec9da8) --- diff --git a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java index aaa20916..3963f165 100644 --- a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java +++ b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java @@ -179,11 +179,6 @@ public class InteractiveVtkComposite extends vtkSwtComponent implements VtkView{ public void lock() { getVTKLock().lock(); - if (getComponent().getContext() != null && !getComponent().getContext().isCurrent()) { - @SuppressWarnings("unused") - int ret = getComponent().getContext().makeCurrent(); -// System.out.println("Make current2 " + ret); - } } public void unlock() {