From 94aaaa007f814ab2966d32e1e6ba744206ec9da8 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Mon, 25 May 2020 12:54:40 +0300 Subject: [PATCH] Remove misplaced call to GLContext.makeCurrent() gitlab #129 Change-Id: I2903822a9ea9536bbabea3843f6b86d9588f52cb --- .../org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java | 5 ----- 1 file changed, 5 deletions(-) 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() { -- 2.47.1