aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-08-24 21:42:17 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-08-28 13:49:09 +0200
commit57b0d96b64981c93e1a7decd010d30c0b4883900 (patch)
tree67722fdc7013554ef92ae72ae964aa50afe1bf3d /src/quick/scenegraph/qsgdefaultglyphnode_p.cpp
parentdcbfb32c99818da804aabfc3821f5c23ada5686c (diff)
Fix a bunch of compiler warnings
Taks-number: QTBUG-86234 Change-Id: I4c945edecdbe55bc5587c18599d49dfb82ade1eb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultglyphnode_p.cpp')
-rw-r--r--src/quick/scenegraph/qsgdefaultglyphnode_p.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp b/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp
index 475dbea393..b422eea123 100644
--- a/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp
+++ b/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp
@@ -67,6 +67,7 @@ static inline QVector4D qsg_premultiply(const QVector4D &c, float globalOpacity)
return QVector4D(c.x() * o, c.y() * o, c.z() * o, o);
}
+#if 0
static inline qreal qt_sRGB_to_linear_RGB(qreal f)
{
return f > 0.04045 ? qPow((f + 0.055) / 1.055, 2.4) : f / 12.92;
@@ -85,6 +86,7 @@ static inline qreal fontSmoothingGamma()
static qreal fontSmoothingGamma = QGuiApplicationPrivate::platformIntegration()->styleHint(QPlatformIntegration::FontSmoothingGamma).toReal();
return fontSmoothingGamma;
}
+#endif
class QSGTextMaskRhiShader : public QSGMaterialShader
{