diff options
author | Merov Linden <merov@lindenlab.com> | 2011-03-17 23:19:39 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-03-17 23:19:39 -0700 |
commit | bce92b3ec6d3efb4a2938f35ba7e1803b4b57145 (patch) | |
tree | 76c0ded54ebe614d74d4ad4b577d41abc2630c3a /indra/llrender | |
parent | d63c1a4df14f5eaeee37b82890a445e912d60683 (diff) | |
parent | 741de388d38290cbb946070a8380f492971dfd2e (diff) |
Pull in merov_linden/viewer-autobuild2010
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 7b5907a668..1beb74eca6 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -310,7 +310,18 @@ void LLVertexBuffer::drawArrays(U32 mode, U32 first, U32 count) const //static void LLVertexBuffer::initClass(bool use_vbo, bool no_vbo_mapping) { - sEnableVBOs = use_vbo; + sEnableVBOs = use_vbo && gGLManager.mHasVertexBufferObject ; + if(sEnableVBOs) + { + //llassert_always(glBindBufferARB) ; //double check the extention for VBO is loaded. + + llinfos << "VBO is enabled." << llendl ; + } + else + { + llinfos << "VBO is disabled." << llendl ; + } + sDisableVBOMapping = sEnableVBOs && no_vbo_mapping ; LLGLNamePool::registerPool(&sDynamicVBOPool); LLGLNamePool::registerPool(&sDynamicIBOPool); |