Skip to content
Snippets Groups Projects
Commit 6a5b11dc authored by Sean McBride's avatar Sean McBride
Browse files

Removed unneeded call to MakeCurrent()

RemoveAllViewProps doesn't call MakeCurrent(), so presumably RemoveViewProp doesn't need to either.
parent 55ab8906
No related branches found
No related tags found
No related merge requests found
......@@ -152,10 +152,6 @@ void vtkViewport::RemoveViewProp(vtkProp* p)
{
if (p && this->HasViewProp(p))
{
if (this->VTKWindow)
{
this->VTKWindow->MakeCurrent();
}
p->ReleaseGraphicsResources(this->VTKWindow);
p->RemoveConsumer(this);
this->Props->RemoveItem(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment