]> OCCT Git - occt-copy.git/commitdiff
0032179: Visualization - OpenGl viewer clears QML controls content during redraw... CR0_DMUReviewer_IR-2020-05-15 CR0_DMUReviewer_IR-2020-05-15_CR32179_1
authornds <nds@opencascade.com>
Fri, 26 Feb 2021 19:20:35 +0000 (22:20 +0300)
committernds <nds@opencascade.com>
Mon, 1 Mar 2021 08:40:15 +0000 (11:40 +0300)
src/OpenGl/OpenGl_View_Redraw.cxx

index 7fd8d7eb1939fc9e3a8868211d44f1511b6801dc..c4acc8f426e224845f839e917155f4a3417c1a1a 100644 (file)
@@ -1500,7 +1500,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