diff options
-rw-r--r-- | vcl/opengl/RenderList.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/RenderList.cxx b/vcl/opengl/RenderList.cxx index 927de11525b9..903c492c0d35 100644 --- a/vcl/opengl/RenderList.cxx +++ b/vcl/opengl/RenderList.cxx @@ -284,9 +284,6 @@ void RenderList::addDrawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon, checkOverlapping(rPolyPolygon.getB2DRange()); - RenderParameters& rLineRenderParameter = maRenderEntries.back().maLineParameters; - RenderParameters& rTriangleRenderParameter = maRenderEntries.back().maTriangleParameters; - if (nFillColor != SALCOLOR_NONE) { basegfx::B2DTrapezoidVector aTrapezoidVector; @@ -294,6 +291,8 @@ void RenderList::addDrawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon, if (!aTrapezoidVector.empty()) { + RenderParameters& rTriangleRenderParameter = maRenderEntries.back().maTriangleParameters; + for (basegfx::B2DTrapezoid & rTrapezoid : aTrapezoidVector) { GLfloat topX1 = rTrapezoid.getTopXLeft(); @@ -314,6 +313,7 @@ void RenderList::addDrawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon, if (nLineColor != SALCOLOR_NONE || bUseAA) { + RenderParameters& rLineRenderParameter = maRenderEntries.back().maLineParameters; Color nColor = (nLineColor == SALCOLOR_NONE) ? nFillColor : nLineColor; vcl::LineBuilder aBuilder(rLineRenderParameter.maVertices, rLineRenderParameter.maIndices, |