diff options
-rw-r--r-- | src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp index 7fac5a3e72..5372a0e6a6 100644 --- a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp +++ b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp @@ -407,8 +407,8 @@ bool DistanceFieldShiftedStyleTextMaterialRhiShader::updateUniformData(RenderSta if (!oldMat || oldMat->fontScale() != mat->fontScale() || oldMat->shift() != mat->shift() || oldMat->textureSize() != mat->textureSize()) { - QPointF shift(1.0 / mat->fontScale() * mat->shift().x(), - 1.0 / mat->fontScale() * mat->shift().y()); + QVector2D shift(1.0 / mat->fontScale() * mat->shift().x(), + 1.0 / mat->fontScale() * mat->shift().y()); memcpy(buf->data() + 128, &shift, 8); changed = true; } |