From 2023a4a11c0be1b1d8a51800b068c0ae339bbab7 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 (cherry picked from commit 94aaaa007f814ab2966d32e1e6ba744206ec9da8) --- .../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 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() { -- 2.45.2