]> OCCT Git - occt-copy.git/commitdiff
0032179: Visualization, TKOpenGl - viewer clears QML controls content during redraw... CR32179
authornds <nds@opencascade.com>
Sun, 28 Feb 2021 15:16:49 +0000 (18:16 +0300)
committernds <nds@opencascade.com>
Sun, 28 Feb 2021 15:16:49 +0000 (18:16 +0300)
src/OpenGl/OpenGl_View.cxx

index 57af07f5b1c6b968a65f83929af5ce92866174b1..1c99b43a0ff0b3ef9a52d55b41684af7ead2f646 100644 (file)
@@ -2586,7 +2586,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->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();