]> OCCT Git - occt-copy.git/commitdiff
0032179: Visualization - OpenGl viewer clears QML controls content during redraw...
authornds <nds@opencascade.com>
Fri, 26 Feb 2021 19:20:35 +0000 (22:20 +0300)
committersnn <sergey.nikonov@opencascade.com>
Wed, 17 Mar 2021 16:12:48 +0000 (19:12 +0300)
src/OpenGl/OpenGl_View_Redraw.cxx

index bbe25aa22338bd7fb3dffd40c8b6a42e6a4722d1..123fcc76cfaed7adcde89b97928e1933d510e8f9 100644 (file)
@@ -1492,7 +1492,7 @@ bool OpenGl_View::blitBuffers (OpenGl_FrameBuffer*    theReadFbo,
 #else
   aCtx->core20fwd->glClearDepthf (1.0f);
 #endif
-  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);
 
   const bool toApplyGamma = aCtx->ToRenderSRGB() != aCtx->IsFrameBufferSRGB();
   if (aCtx->arbFBOBlit != NULL