summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-11-13 12:22:41 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-11-13 12:55:44 (GMT)
commitaff0df17051c4f251c86bc4d7929930e39514742 (patch)
treef4795ec7743926859a61d7d9f74edaf51c28dc54 /src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
parentaa784453478ebff299a27eec1683001d2e5084bc (diff)
downloadQt-aff0df17051c4f251c86bc4d7929930e39514742.zip
Qt-aff0df17051c4f251c86bc4d7929930e39514742.tar.gz
Qt-aff0df17051c4f251c86bc4d7929930e39514742.tar.bz2
Fixed stroking of discontinuous paths with the GL2 engine.
Since the stroke is rendered as a triangle strip, zero area triangles must be inserted in order to have gaps in the stroke. This is achieved by duplicating vertices before and after each gap. It was already done for open subpaths. This commit fixes gaps between closed subpaths. Task-number: QTBUG-5736 Reviewed-by: Gunnar
Diffstat (limited to 'src/opengl/gl2paintengineex/qtriangulatingstroker_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qtriangulatingstroker_p.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h b/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
index defa3f1..a0117d5 100644
--- a/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
+++ b/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
@@ -188,10 +188,6 @@ inline void QTriangulatingStroker::endCap(const qreal *pts)
break;
default: break; // to shut gcc up...
}
-
- int count = m_vertices.size();
- m_vertices.add(m_vertices.at(count-2));
- m_vertices.add(m_vertices.at(count-1));
}