From 5aa15b54225e937ed1e262809a1ddb9324b3909e Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 26 Feb 2018 10:17:07 -0800 Subject: [PATCH] Fixing build warnings --- .../entities-renderer/src/RenderableMaterialEntityItem.cpp | 1 - tools/ktx-tool/src/main.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/libraries/entities-renderer/src/RenderableMaterialEntityItem.cpp b/libraries/entities-renderer/src/RenderableMaterialEntityItem.cpp index 8ed8650db1..119a46b68f 100644 --- a/libraries/entities-renderer/src/RenderableMaterialEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableMaterialEntityItem.cpp @@ -68,7 +68,6 @@ ShapeKey MaterialEntityRenderer::getShapeKey() { bool isTranslucent = drawMaterialKey.isTranslucent(); bool hasTangents = drawMaterialKey.isNormalMap(); - bool hasSpecular = drawMaterialKey.isMetallicMap(); bool hasLightmap = drawMaterialKey.isLightmapMap(); bool isUnlit = drawMaterialKey.isUnlit(); diff --git a/tools/ktx-tool/src/main.cpp b/tools/ktx-tool/src/main.cpp index f0996523b3..1ef03ba80b 100644 --- a/tools/ktx-tool/src/main.cpp +++ b/tools/ktx-tool/src/main.cpp @@ -70,13 +70,6 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt std::cout << message.toStdString() << std::endl; } -static inline glm::uvec2 evalMipDimension(uint32_t mipLevel, const glm::uvec2& dims) { - return glm::uvec2{ - std::max(dims.x >> mipLevel, 1U), - std::max(dims.y >> mipLevel, 1U), - }; -} - void processKtxFile(const QFileInfo& inputFileInfo) { const QString inputFileName = inputFileInfo.absoluteFilePath(); const QString compressedFileName = DEST_FOLDER.absoluteFilePath(inputFileInfo.fileName());