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

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