diff options
author | Jonathan Yap <none@none> | 2011-03-19 16:29:32 -0400 |
---|---|---|
committer | Jonathan Yap <none@none> | 2011-03-19 16:29:32 -0400 |
commit | fbd241da54ad6017825b59c5b0c71086d8b8957a (patch) | |
tree | 34051dba97afece2416f25954080011d922d910e /indra/llrender | |
parent | 834d0f1ed612c8644e642103096daf7f0b0f44c9 (diff) | |
parent | 1a7369408c0b2cd15dbdc79d045f3347a8ab47d1 (diff) |
STORM-1019 Resolve merge conflicts
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); |