[vtkusers] offscreen rendering bug + fix

Rainer Sabelka sabelka at iue.tuwien.ac.at
Tue Aug 8 10:03:21 EDT 2000


Hello VTK developers,

when I use the offscreen rendering mode (vtkMesaRenderWindow) switching
back to on-screen mode doesn't work. I'll attach a fix.

Cheers,
Rainer

------------------------------------------------------------
--- vtkMesaRenderWindow.cxx.orig        Tue Jun 13 02:04:29 2000
+++ vtkMesaRenderWindow.cxx     Tue Aug  8 15:42:39 2000
@@ -1374,7 +1374,7 @@
     }
   else
     {
-    if (!this->OffScreenWindow)
+    if (this->OffScreenWindow)
       {
       OSMesaDestroyContext(this->OffScreenContextId);
       this->OffScreenContextId = NULL;
@@ -1386,6 +1386,7 @@
     this->MakeCurrent();
     // reset the size based on the screen window
     this->GetSize();
+    this->WindowInitialize();
     }
 #endif
 }





More information about the vtkusers mailing list