From 615055e6d04d7d43da3f5ba7341a2f5584a0ad4a Mon Sep 17 00:00:00 2001 From: Beq Date: Mon, 15 May 2023 00:23:16 +0100 Subject: [PATCH] oops don't need both. --- indra/newview/llsurface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llsurface.cpp b/indra/newview/llsurface.cpp index 593e3bd964..e50b696c40 100644 --- a/indra/newview/llsurface.cpp +++ b/indra/newview/llsurface.cpp @@ -176,7 +176,7 @@ void LLSurface::create(const S32 grids_per_edge, if ((sTextureSize & (sTextureSize - 1)) != 0) { // Not a power of 2, find the next power of 2 - sTextureSize = 1 << static_cast( pow( 2, static_cast( ceil(log2(sTextureSize)) ) ) ); + sTextureSize = 1 << static_cast( ceil(log2(sTextureSize)) ) ; } // Clamp to maximum limit