From dc409c4f645e34bc58ab92e8572d796c8ed5a288 Mon Sep 17 00:00:00 2001 From: Beq Date: Sun, 10 Aug 2025 10:27:18 +0100 Subject: [PATCH] Unused variable flagged by MacOS. The entire switch block has no use. --- indra/llrender/llrendertarget.cpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp index 7d6bc9688d..3bf42124fd 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -498,20 +498,22 @@ void LLRenderTarget::bindTexture(U32 index, S32 channel, LLTexUnit::eTextureFilt { gGL.getTexUnit(channel)->bindManual(mUsage, getTexture(index), filter_options == LLTexUnit::TFO_TRILINEAR || filter_options == LLTexUnit::TFO_ANISOTROPIC); - bool isSRGB = false; - llassert(mInternalFormat.size() > index); - switch (mInternalFormat[index]) - { - case GL_SRGB: - case GL_SRGB8: - case GL_SRGB_ALPHA: - case GL_SRGB8_ALPHA8: - isSRGB = true; - break; + // Unused variable warning fix (Macos) none of this code is needed. + // bool isSRGB = false; + // llassert(mInternalFormat.size() > index); + // switch (mInternalFormat[index]) + // { + // case GL_SRGB: + // case GL_SRGB8: + // case GL_SRGB_ALPHA: + // case GL_SRGB8_ALPHA8: + // isSRGB = true; + // break; - default: - break; - } + // default: + // break; + // } + // gGL.getTexUnit(channel)->setTextureFilteringOption(filter_options); }