diff options
author | Loren Shih <seraph@lindenlab.com> | 2011-03-09 11:24:54 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2011-03-09 11:24:54 -0500 |
commit | c8293e29caf4701f130141a88b90709a09143d4e (patch) | |
tree | fc84848355f3c5d21e3fd6dd1ba2c5eade2d8c03 /indra/llrender | |
parent | 94b0ce6d842a1f34bd46535a8b4db68aa397a541 (diff) | |
parent | 76a325b83271424d231561d8ef099df1406c9517 (diff) |
Automated merge up from viewer-development into mesh-development
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 378147eadc..0d3f5b81bc 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -354,7 +354,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); |