Commit f7f82536 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Fixed regression introduced by a6fa3e37.

a6fa3e37 changed the logic in vtkWin32OpenGLRenderWindow::CleanUpRenderers().
That method was used when swithcing from offscreen to onscreen. That resulted in
the renderers not having correct references to render window after switching
from offscreen to onscreen context causing dashboard failures on ParaView
dashboards. This fixes that issue.

Since the a6fa3e37 changed the logic in CreateOffScreenDC() by not using
CleanUpRenderers() to reset renderers, it makes sence to change the logic in
ResumeScreenRendering() to not use CleanUpRenderers() for resetting renderers as
well.

Change-Id: I32e58854fa8720c99212cee5d7a2652f11dc9b21
parent f81dd42f
...@@ -1628,7 +1628,15 @@ void vtkWin32OpenGLRenderWindow::ResumeScreenRendering(void) ...@@ -1628,7 +1628,15 @@ void vtkWin32OpenGLRenderWindow::ResumeScreenRendering(void)
if(this->ContextId!=0) if(this->ContextId!=0)
{ {
this->MakeCurrent(); this->MakeCurrent();
this->CleanUpRenderers(); // Renderers will need to redraw anything cached in display lists
vtkRenderer *ren;
vtkCollectionSimpleIterator rsit;
for (this->Renderers->InitTraversal(rsit);
(ren = this->Renderers->GetNextRenderer(rsit));)
{
ren->SetRenderWindow(NULL);
ren->SetRenderWindow(this);
}
} }
this->Mapped = this->ScreenMapped; this->Mapped = this->ScreenMapped;
......
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