From ccd6290834bb0ffec36a7e015deba84877185936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Str=C3=B8mme?= <christian.stromme@qt.io> Date: Thu, 27 Jun 2019 14:36:28 +0200 Subject: [PATCH] Disable unused code --- .../qdemonrendercustommaterialshadergenerator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtimerender/qdemonrendercustommaterialshadergenerator.cpp b/src/runtimerender/qdemonrendercustommaterialshadergenerator.cpp index 7fc9e069..59218377 100644 --- a/src/runtimerender/qdemonrendercustommaterialshadergenerator.cpp +++ b/src/runtimerender/qdemonrendercustommaterialshadergenerator.cpp @@ -443,7 +443,7 @@ struct QDemonShaderGenerator : public QDemonMaterialShaderGeneratorInterface virtual QDemonRef<QDemonShaderLightProperties> setLight(const QDemonRef<QDemonRenderShaderProgram> &inShader, qint32 lightIdx, - qint32 shadeIdx, + qint32 /*shadeIdx*/, const QDemonRenderLight *inLight, QDemonShadowMapEntry *inShadow, qint32 shadowIdx, @@ -458,6 +458,7 @@ struct QDemonShaderGenerator : public QDemonMaterialShaderGeneratorInterface } if (theLightEntry == nullptr) { // create a new name +#if 0 QString lightName; if (inLight->m_lightType == QDemonRenderLight::Type::Area) lightName = QStringLiteral("arealights"); @@ -466,6 +467,7 @@ struct QDemonShaderGenerator : public QDemonMaterialShaderGeneratorInterface char buf[16]; qsnprintf(buf, 16, "[%d]", int(shadeIdx)); lightName.append(QString::fromLocal8Bit(buf)); +#endif QDemonRef<QDemonShaderLightProperties> theNewEntry( new QDemonShaderLightProperties(QDemonShaderLightProperties::createLightEntry(inShader))); -- GitLab