]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Remove misplaced call to GLContext.makeCurrent() 46/4246/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Mon, 25 May 2020 09:54:40 +0000 (12:54 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 26 May 2020 07:59:44 +0000 (07:59 +0000)
gitlab #129

Change-Id: I2903822a9ea9536bbabea3843f6b86d9588f52cb
(cherry picked from commit 94aaaa007f814ab2966d32e1e6ba744206ec9da8)

org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java

index aaa2091699a01a56989d78931813589ce4ddc41f..3963f16507923e419b78b430bee59c160217b561 100644 (file)
@@ -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() {