Skip to content
Snippets Groups Projects
Commit a313cedd authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

fix for STORM-1026: Viewer crahes while trying to reset Graphics quality.

reviewed by davep
parent cd3b76cb
Branches
Tags
No related merge requests found
...@@ -310,7 +310,18 @@ void LLVertexBuffer::drawArrays(U32 mode, U32 first, U32 count) const ...@@ -310,7 +310,18 @@ void LLVertexBuffer::drawArrays(U32 mode, U32 first, U32 count) const
//static //static
void LLVertexBuffer::initClass(bool use_vbo, bool no_vbo_mapping) 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 ; sDisableVBOMapping = sEnableVBOs && no_vbo_mapping ;
LLGLNamePool::registerPool(&sDynamicVBOPool); LLGLNamePool::registerPool(&sDynamicVBOPool);
LLGLNamePool::registerPool(&sDynamicIBOPool); LLGLNamePool::registerPool(&sDynamicIBOPool);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment