summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/opengl/RenderList.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/opengl/RenderList.cxx b/vcl/opengl/RenderList.cxx
index 5f99513bba17..cef311f9d22a 100644
--- a/vcl/opengl/RenderList.cxx
+++ b/vcl/opengl/RenderList.cxx
@@ -326,6 +326,8 @@ void RenderList::addDrawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon,
aPolygon = rPolygon.getDefaultAdaptiveSubdivision();
sal_uInt32 nPoints = aPolygon.count();
+ if (nPoints <= 1)
+ continue;
GLfloat x1, y1, x2, y2;
sal_uInt32 index1, index2;