diff options
author | Jonathan Yap <none@none> | 2011-02-25 20:21:54 -0500 |
---|---|---|
committer | Jonathan Yap <none@none> | 2011-02-25 20:21:54 -0500 |
commit | 513fdff9cd8969d7351016902d8304306f739f4e (patch) | |
tree | a42da46c9be6c89b96cbf02f7125ae009890a787 /indra/newview/pipeline.cpp | |
parent | eff712570d389d1b7b36153c48b17d906d5eada3 (diff) | |
parent | 9962560f57eb4bcf1b3451f5d86c963d5d6fcf5c (diff) |
STORM-990 merge with current v-d & fixed merge conflict
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 39bc354250..13e537fae5 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -5313,7 +5313,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); } } |