Don't set opacity when we are not told
authorGunnar Sletta <gunnar.sletta@digia.com>
Thu, 1 Aug 2013 14:19:00 +0000 (16:19 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 12 Aug 2013 15:03:17 +0000 (17:03 +0200)
Change-Id: I8addc16f37ad9ce431a3b7b2fd1a4884693d7e38
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/quick/scenegraph/util/qsgvertexcolormaterial.cpp

index 29f95e5..eeb3056 100644 (file)
@@ -66,7 +66,7 @@ QSGMaterialType QSGVertexColorMaterialShader::type;
 
 void QSGVertexColorMaterialShader::updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *)
 {
-    if (!(newEffect->flags() & QSGMaterial::Blending) || state.isOpacityDirty())
+    if (state.isOpacityDirty())
         program()->setUniformValue(m_opacity_id, state.opacity());
 
     if (state.isMatrixDirty())