]> 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)
committernds <nds@opencascade.com>
Thu, 29 Apr 2021 06:56:14 +0000 (09:56 +0300)
(cherry picked from commit 78caa4571e1ac7865206d4950a2aa4928cfab1ca)
(cherry picked from commit 6f27a45c49857eae3b117a62f05d1df8f1bb168b)
(cherry picked from commit 4d4bc912fc3e639f22135c5f138dd65c396d9ca6)

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