diff options
author | Don Kjer <don@lindenlab.com> | 2011-02-22 21:27:47 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2011-02-22 21:27:47 +0000 |
commit | 97eb1b9da4fc04d6d0ded92132be6e8d43d5c3ff (patch) | |
tree | abba08db97a2821151c24910c6fd28f0418ef3d4 /indra/newview/pipeline.cpp | |
parent | b5e843abb59ac32cb8cd85dc4b1a43f2bb5c22ee (diff) | |
parent | e216fabde0b23923a3fff5c5edcb6a6a0be10ddd (diff) |
Merge with viewer-development
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 90929b5aa1..670414f780 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -5309,7 +5309,25 @@ void LLPipeline::setUseVBO(BOOL use_vbo) } resetVertexBuffers(); - LLVertexBuffer::initClass(use_vbo); + LLVertexBuffer::initClass(use_vbo, gSavedSettings.getBOOL("RenderVBOMappingDisable")); + } +} + +void LLPipeline::setDisableVBOMapping(BOOL no_vbo_mapping) +{ + if (LLVertexBuffer::sEnableVBOs && no_vbo_mapping != LLVertexBuffer::sDisableVBOMapping) + { + if (no_vbo_mapping) + { + llinfos << "Disabling VBO glMapBufferARB." << llendl; + } + else + { + llinfos << "Enabling VBO glMapBufferARB." << llendl; + } + + resetVertexBuffers(); + LLVertexBuffer::initClass(true, no_vbo_mapping); } } |