]> OCCT Git - occt.git/commitdiff
0028615: Visualization, TKOpenGl - enabling MSAA leads to black screen on OpenGL ES
authorkgv <kgv@opencascade.com>
Sun, 2 Apr 2017 13:48:26 +0000 (16:48 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 12 Apr 2017 14:52:53 +0000 (17:52 +0300)
Removed redundant macros check.

src/OpenGl/OpenGl_View_Redraw.cxx

index 37fcd9554ebf6da9031b6225edd516ee48478d16..30ad66016e03db72946969580837bcd2b158a1d6 100644 (file)
@@ -1089,7 +1089,6 @@ bool OpenGl_View::blitBuffers (OpenGl_FrameBuffer*    theReadFbo,
 #endif
   aCtx->core20fwd->glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
 
-#if !defined(GL_ES_VERSION_2_0)
   if (aCtx->arbFBOBlit != NULL
    && theReadFbo->NbSamples() != 0)
   {
@@ -1164,7 +1163,6 @@ bool OpenGl_View::blitBuffers (OpenGl_FrameBuffer*    theReadFbo,
     }
   }
   else
-#endif
   {
     aCtx->core20fwd->glDepthFunc (GL_ALWAYS);
     aCtx->core20fwd->glDepthMask (GL_TRUE);