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=2023a4a11c0be1b1d8a51800b068c0ae339bbab7;hp=d712238e56184a6763fd631bb0ab8a2cdcc3de56;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() {