summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-06-30 20:38:05 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2018-06-30 23:07:40 +0200
commita272704cb04fee27a5934433fe59a006b2ddaf0e (patch)
treedb1fe663689bd808abc325be7b50e8e1e2c2de8c /vcl/opengl
parent6050f9cf7b39e4d7073e1e54109e436b43dfa519 (diff)
cppcheck: variableScope
Change-Id: Icd99a9e6791840f7701745b93a0f414bf61e2955 Reviewed-on: https://gerrit.libreoffice.org/56773 Tested-by: Jenkins Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/RenderList.cxx6
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,