Commit 5d9e7e73 authored by Joni Poikelin's avatar Joni Poikelin Committed by Qt Cherry-pick Bot
Browse files

Clear old triangulated vertex data when a path is completely clipped

Old data was held in buffers which caused OpenGL paint engine to
re-render previous shape again with current settings if the current path
was completely clipped.

Fixes: QTBUG-35513
Change-Id: I0cd448e0b18d199af11e82d79b1ab72d0f89c79e
Reviewed-by: default avatarEirik Aavitsland <>
(cherry picked from commit de3b2541

Reviewed-by: default avatarQt Cherry-pick Bot <>
parent 569cd5c7
......@@ -84,6 +84,7 @@ void QTriangulatingStroker::process(const QVectorPath &path, const QPen &pen, co
const qreal *pts = path.points();
const QPainterPath::ElementType *types = path.elements();
int count = path.elementCount();
if (count < 2)
......@@ -100,7 +101,6 @@ void QTriangulatingStroker::process(const QVectorPath &path, const QPen &pen, co
m_join_style = qpen_joinStyle(pen);
m_cap_style = qpen_capStyle(pen);
m_miter_limit = pen.miterLimit() * qpen_widthf(pen);
// The curvyness is based on the notion that I originally wanted
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment