From: rnv Date: Fri, 13 Nov 2020 14:11:31 +0000 (+0300) Subject: Fix for #19939 [CEA 19938] Black screen after dumping view in the VTK Viewer X-Git-Tag: V9_7_0a1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8f7271d0bcceb437c9bcc2cc55730566a490e5b;p=modules%2Fgui.git Fix for #19939 [CEA 19938] Black screen after dumping view in the VTK Viewer --- 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();