From: Reino Ruusu Date: Mon, 25 May 2020 09:54:40 +0000 (+0300) Subject: Remove misplaced call to GLContext.makeCurrent() X-Git-Tag: v1.43.0~10 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=94aaaa007f814ab2966d32e1e6ba744206ec9da8;p=simantics%2F3d.git Remove misplaced call to GLContext.makeCurrent() gitlab #129 Change-Id: I2903822a9ea9536bbabea3843f6b86d9588f52cb --- 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 540e300a..da984c08 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 @@ -182,11 +182,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() {