]> OCCT Git - occt-copy.git/commitdiff
0032179: Visualization - OpenGl viewer clears QML controls content during redraw...
authorsnn <sergey.nikonov@opencascade.com>
Thu, 20 May 2021 14:31:05 +0000 (17:31 +0300)
committersnn <snn@opencascade.com>
Tue, 25 May 2021 07:05:12 +0000 (10:05 +0300)
src/OpenGl/OpenGl_View.cxx

index 2900289ea5d2ce3b7cf62a603ccf1d55f78a9e56..64aaa2869b4eb51dbc41476e71b514a344c53d1d 100644 (file)
@@ -2559,7 +2559,7 @@ bool OpenGl_View::blitBuffers (OpenGl_FrameBuffer*    theReadFbo,
   aCtx->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
   aCtx->core20fwd->glClearDepth (1.0);
   aCtx->core20fwd->glClearColor (0.0f, 0.0f, 0.0f, aCtx->caps->buffersOpaqueAlpha ? 1.0f : 0.0f);
-  aCtx->core20fwd->glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+  aCtx->core20fwd->glClear (GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
   aCtx->SetColorMask (true); // restore default alpha component write state
 
   const bool toApplyGamma = aCtx->ToRenderSRGB() != aCtx->IsFrameBufferSRGB();