X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.vtk%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fvtk%2Fswt%2FInteractiveVtkComposite.java;h=da984c086650c2c4578b7593175e44a4c5a9cfb1;hb=94aaaa007f814ab2966d32e1e6ba744206ec9da8;hp=540e300aa2cde241b6cc464a5dcd4d091b5bdcf3;hpb=8670eb677c67d8d750fb410f14b1de22ae557f06;p=simantics%2F3d.git 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() {