Salome HOME
Update list of known failed tests from testbase
[tools/configuration.git] / config / patches / occt.001_transparency.patch
1 diff -Naur OCCT-7.5.0p1_SRC_orig/src/OpenGl/OpenGl_LayerList.cxx OCCT-7.5.0p1_SRC_modif/src/OpenGl/OpenGl_LayerList.cxx
2 --- OCCT-7.5.0p1_SRC_orig/src/OpenGl/OpenGl_LayerList.cxx
3 +++ OCCT-7.5.0p1_SRC_modif/src/OpenGl/OpenGl_LayerList.cxx
4 @@ -889,7 +889,7 @@
5    }
6    else
7    {
8 -    aCtx->core11fwd->glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9 +    aCtx->core15fwd->glBlendFuncSeparate (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE);
10    }
11  
12    // During blended order-independent transparency pass the depth test
13 diff -Naur OCCT-7.5.0p1_SRC_orig/src/OpenGl/OpenGl_View_Redraw.cxx OCCT-7.5.0p1_SRC_modif/src/OpenGl/OpenGl_View_Redraw.cxx
14 --- OCCT-7.5.0p1_SRC_orig/src/OpenGl/OpenGl_View_Redraw.cxx
15 +++ OCCT-7.5.0p1_SRC_modif/src/OpenGl/OpenGl_View_Redraw.cxx
16 @@ -933,7 +933,7 @@
17  #endif
18  
19    const OpenGl_Vec4 aBgColor = aCtx->Vec4FromQuantityColor (myBgColor);
20 -  glClearColor (aBgColor.r(), aBgColor.g(), aBgColor.b(), 0.0f);
21 +  glClearColor (aBgColor.r(), aBgColor.g(), aBgColor.b(), 1.0f);
22  
23    glClear (toClear);
24  
25