From: nds Date: Fri, 26 Feb 2021 19:20:35 +0000 (+0300) Subject: 0032179: Visualization - OpenGl viewer clears QML controls content during redraw... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=071162fa724a31e9d0e8cc8f7997714ad73c47b5;p=occt-copy.git 0032179: Visualization - OpenGl viewer clears QML controls content during redraw on touchscreen device --- diff --git a/src/OpenGl/OpenGl_View_Redraw.cxx b/src/OpenGl/OpenGl_View_Redraw.cxx index 7fd8d7eb19..c4acc8f426 100644 --- a/src/OpenGl/OpenGl_View_Redraw.cxx +++ b/src/OpenGl/OpenGl_View_Redraw.cxx @@ -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