From 6cd180e4d10c514aa4fbfe9bd31c7d0095e8b6f9 Mon Sep 17 00:00:00 2001 From: Kitty Barnett Date: Sun, 5 May 2019 12:32:01 +0200 Subject: [PATCH] [FIXED] CLang hissy fit errors --HG-- branch : RLVa --- indra/newview/lldrawpooltree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/lldrawpooltree.cpp b/indra/newview/lldrawpooltree.cpp index ecba1dc75d..a653bbd89f 100644 --- a/indra/newview/lldrawpooltree.cpp +++ b/indra/newview/lldrawpooltree.cpp @@ -99,7 +99,8 @@ void LLDrawPoolTree::render(S32 pass) LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); // [SL:KB] - Patch: Render-TextureToggle (Catznip-4.0) - gGL.getTexUnit(sDiffTex)->bind( (LLPipeline::sRenderTextures) ? mTexturep : LLViewerFetchedTexture::sDefaultDiffuseImagep ); + LLViewerTexture* pTexture = (LLPipeline::sRenderTextures) ? mTexturep : LLViewerFetchedTexture::sDefaultDiffuseImagep; + gGL.getTexUnit(sDiffTex)->bind(pTexture); // [/SL:KB] // gGL.getTexUnit(sDiffTex)->bind(mTexturep);