diff options
author | Glenn Watson <glenn.watson@nokia.com> | 2012-02-08 09:36:18 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-08 14:37:04 +0100 |
commit | 5ba11cb77c9c30b0691cf5c15d132db9891b8773 (patch) | |
tree | 411b35faf4f2e9893e6a01a20025bea6100e9ac0 /src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp | |
parent | 8799d4f5501656dbf42f645a354c1f372b1139dc (diff) |
Provide determinant accessor in render state structure.
This allows custom renderers to set the determinant to a value
different than the actual model view transform matrix. This is
useful when parts of the scene node transformation are done on
the CPU rather than in the vertex shader.
Change-Id: Icf26a5922b0933275a61af4656cf842bf61e70d5
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp index f17958cdf4..e525d2a458 100644 --- a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp +++ b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp @@ -157,7 +157,7 @@ void QSGDistanceFieldTextMaterialShader::updateState(const RenderState &state, Q } if (state.isMatrixDirty()) { program()->setUniformValue(m_matrix_id, state.combinedMatrix()); - m_matrixScale = qSqrt(qAbs(state.modelViewMatrix().determinant())); + m_matrixScale = qSqrt(qAbs(state.determinant())); updateRange = true; } if (updateRange) { |