aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvowlsky.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvowlsky.cpp')
-rw-r--r--linden/indra/newview/llvowlsky.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/newview/llvowlsky.cpp b/linden/indra/newview/llvowlsky.cpp
index abd25e6..96bd62e 100644
--- a/linden/indra/newview/llvowlsky.cpp
+++ b/linden/indra/newview/llvowlsky.cpp
@@ -334,7 +334,9 @@ BOOL LLVOWLSky::updateGeometry(LLDrawable * drawable)
334 } 334 }
335 335
336 { 336 {
337 const U32 max_buffer_bytes = gSavedSettings.getS32("RenderMaxVBOSize")*1024; 337 static S32* sRenderMaxVBOSize = rebind_llcontrol<S32>("RenderMaxVBOSize", &gSavedSettings, true);
338
339 const U32 max_buffer_bytes = (*sRenderMaxVBOSize)*1024;
338 const U32 data_mask = LLDrawPoolWLSky::SKY_VERTEX_DATA_MASK; 340 const U32 data_mask = LLDrawPoolWLSky::SKY_VERTEX_DATA_MASK;
339 const U32 max_verts = max_buffer_bytes / LLVertexBuffer::calcStride(data_mask); 341 const U32 max_verts = max_buffer_bytes / LLVertexBuffer::calcStride(data_mask);
340 342