diff options
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultrectanglenode.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultrectanglenode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdefaultrectanglenode.cpp b/src/quick/scenegraph/qsgdefaultrectanglenode.cpp index fb989fd6fb..810a503cee 100644 --- a/src/quick/scenegraph/qsgdefaultrectanglenode.cpp +++ b/src/quick/scenegraph/qsgdefaultrectanglenode.cpp @@ -385,7 +385,7 @@ void QSGDefaultRectangleNode::updateGeometry() int borderTail = 0; int outerAAHead = 0; int outerAATail = 0; - bool hasFill = m_color.rgba() != 0 || !stops.isEmpty(); + bool hasFill = m_color.alpha() > 0 || !stops.isEmpty(); if (hasFill) indexCount += fillIndexCount; if (m_antialiasing) { @@ -609,7 +609,7 @@ void QSGDefaultRectangleNode::updateGeometry() int borderTail = 0; int outerAAHead = 0; int outerAATail = 0; - bool hasFill = m_color.rgba() != 0 || !stops.isEmpty(); + bool hasFill = m_color.alpha() > 0 || !stops.isEmpty(); if (hasFill) indexCount += fillIndexCount; if (m_antialiasing) { |