]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Remove misplaced call to GLContext.makeCurrent() 55/4255/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Mon, 25 May 2020 09:54:40 +0000 (12:54 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Mon, 25 May 2020 09:54:40 +0000 (12:54 +0300)
gitlab #129

Change-Id: I2903822a9ea9536bbabea3843f6b86d9588f52cb

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

index 540e300aa2cde241b6cc464a5dcd4d091b5bdcf3..da984c086650c2c4578b7593175e44a4c5a9cfb1 100644 (file)
@@ -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() {