Commit 25f63b2b authored by Ken Martin's avatar Ken Martin
Browse files

A couple rendering fixes for jogl

Always get a modern context, never own the context
parent 70f49777
Pipeline #171652 passed with stage
......@@ -47,6 +47,7 @@ public class vtkAbstractJoglComponent<T extends java.awt.Component> extends vtkA
vtkAbstractJoglComponent.this.glRenderWindow.SetMapped(1);
vtkAbstractJoglComponent.this.glRenderWindow.SetPosition(0, 0);
vtkAbstractJoglComponent.this.setSize(drawable.getSurfaceWidth(), drawable.getSurfaceHeight());
vtkAbstractJoglComponent.this.glRenderWindow.SetOwnContext(0);
vtkAbstractJoglComponent.this.glRenderWindow.OpenGLInit();
}
......
......@@ -14,7 +14,7 @@ public class vtkJoglCanvasComponent extends vtkAbstractJoglComponent<GLCanvas> {
}
public vtkJoglCanvasComponent(vtkRenderWindow renderWindow) {
this(renderWindow, new GLCapabilities(GLProfile.getDefault()));
this(renderWindow, new GLCapabilities(GLProfile.getMaximum(true)));
}
public vtkJoglCanvasComponent(vtkRenderWindow renderWindow, GLCapabilities capabilities) {
......
......@@ -14,7 +14,7 @@ public class vtkJoglPanelComponent extends vtkAbstractJoglComponent<GLJPanel> {
}
public vtkJoglPanelComponent(vtkRenderWindow renderWindow) {
this(renderWindow, new GLCapabilities(GLProfile.getDefault()));
this(renderWindow, new GLCapabilities(GLProfile.getMaximum(true)));
}
public vtkJoglPanelComponent(vtkRenderWindow renderWindow, GLCapabilities capabilities) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment