]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java
Remove misplaced call to GLContext.makeCurrent()
[simantics/3d.git] / 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() {