aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgshadereffectnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/items/qsgshadereffectnode.cpp')
-rw-r--r--src/declarative/items/qsgshadereffectnode.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/items/qsgshadereffectnode.cpp b/src/declarative/items/qsgshadereffectnode.cpp
index b4dc213b4c..8bd781ce58 100644
--- a/src/declarative/items/qsgshadereffectnode.cpp
+++ b/src/declarative/items/qsgshadereffectnode.cpp
@@ -195,7 +195,10 @@ char const *const *QSGCustomMaterialShader::attributeNames() const
void QSGCustomMaterialShader::initialize()
{
m_opacityLoc = program()->uniformLocation("qt_Opacity");
- m_matrixLoc = program()->uniformLocation("qt_ModelViewProjectionMatrix");
+ m_matrixLoc = program()->uniformLocation("qt_Matrix");
+ // TODO: Remove after grace period.
+ if (m_matrixLoc == -1)
+ m_matrixLoc = program()->uniformLocation("qt_ModelViewProjectionMatrix");
}
const char *QSGCustomMaterialShader::vertexShader() const