]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for #19939 [CEA 19938] Black screen after dumping view in the VTK Viewer
authorrnv <rnv@opencascade.com>
Fri, 13 Nov 2020 14:11:31 +0000 (17:11 +0300)
committerrnv <rnv@opencascade.com>
Fri, 13 Nov 2020 14:11:31 +0000 (17:11 +0300)
src/SVTK/SVTK_ViewWindow.cxx

index 72b366c887270ff29410523774972b94d1cd05fd..2c6aaecce4597d5ea442d9ca81912b12c0ce269e 100644 (file)
@@ -1359,13 +1359,13 @@ QImage SVTK_ViewWindow::dumpViewContent()
 
     // draw scene
     aWindow->Render();
-
-    aFrameBuffer.unbind();
+   
+    //aFrameBuffer.unbind();
     glPopAttrib();
 
     QImage anImage( aWidth, aHeight, QImage::Format_RGB32 );
+    //aFrameBuffer.bind();
 
-    aFrameBuffer.bind();
     glReadPixels( 0, 0, aWidth, aHeight, GL_RGBA, GL_UNSIGNED_BYTE, anImage.bits() );
     aFrameBuffer.unbind();