diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-08-17 12:19:01 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-17 13:19:47 +0200 |
commit | a1166e4146da86fe85d767982697f576ebe2f6a1 (patch) | |
tree | 2ae32dbd2ca2723f0ead62ebb6a98febceabc0ee /src | |
parent | 326ed5767e5d09ed3bf2177d5de17d4e07edf226 (diff) |
Fixed mirrored distance-field text.
Change-Id: Ib80f30afc72b6ef6a9cabb604656755e0b4dfff1
Reviewed-on: http://codereview.qt.nokia.com/3089
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/scenegraph/qsgdistancefieldglyphnode_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/scenegraph/qsgdistancefieldglyphnode_p.cpp b/src/declarative/scenegraph/qsgdistancefieldglyphnode_p.cpp index 4255da4fce..c81113f4dc 100644 --- a/src/declarative/scenegraph/qsgdistancefieldglyphnode_p.cpp +++ b/src/declarative/scenegraph/qsgdistancefieldglyphnode_p.cpp @@ -159,7 +159,7 @@ void QSGDistanceFieldTextMaterialShader::updateState(const RenderState &state, Q } if (state.isMatrixDirty()) { program()->setUniformValue(m_matrix_id, state.combinedMatrix()); - m_matrixScale = qSqrt(state.modelViewMatrix().determinant()); + m_matrixScale = qSqrt(qAbs(state.modelViewMatrix().determinant())); updateRange = true; } if (updateRange) { |