diff options
author | Tofu Buzzard <no-email> | 2011-03-09 10:55:19 -0800 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-03-09 10:55:19 -0800 |
commit | 75e938cd75d82fcea7d58c556abf403b3629283e (patch) | |
tree | 7d3caeea5519dcb914f6219b6b9de85bae67558f /indra/llrender/llvertexbuffer.cpp | |
parent | ceb8561e49ace81d39209849a6f8a805d2d9d8ed (diff) | |
parent | c8293e29caf4701f130141a88b90709a09143d4e (diff) |
merge
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-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); |