[Libreoffice-commits] core.git: Branch 'feature/opengl-canvas-rework' - canvas/source

Michael Jaumann meta_dev at yahoo.com
Mon Jan 19 04:41:14 PST 2015


 canvas/source/opengl/ogl_canvashelper.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a435269e765bd2aa0f296bc3d09920e7628aaf0c
Author: Michael Jaumann <meta_dev at yahoo.com>
Date:   Thu Jan 15 13:25:21 2015 +0000

    fill polypolygons fully transparent
    
    Change-Id: I76711d305bc672e70b4ecdd2f8e1fa1b7fbf44b6

diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx
index 9aa92e2..c3b9800 100644
--- a/canvas/source/opengl/ogl_canvashelper.cxx
+++ b/canvas/source/opengl/ogl_canvashelper.cxx
@@ -227,6 +227,7 @@ namespace oglcanvas
                                           (float) rColor.Green,
                                           (float) rColor.Blue,
                                           (float) rColor.Alpha);
+            glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
             ::basegfx::B2DPolyPolygonVector::const_iterator aCurr=rPolyPolygons.begin();
             const ::basegfx::B2DPolyPolygonVector::const_iterator aEnd=rPolyPolygons.end();


More information about the Libreoffice-commits mailing list