From f8f7271d0bcceb437c9bcc2cc55730566a490e5b Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 13 Nov 2020 17:11:31 +0300 Subject: [PATCH] Fix for #19939 [CEA 19938] Black screen after dumping view in the VTK Viewer --- src/SVTK/SVTK_ViewWindow.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 72b366c88..2c6aaecce 100644 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -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(); -- 2.39.2