diff options
author | Dave Parks <davep@lindenlab.com> | 2011-09-22 00:57:47 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-09-22 00:57:47 -0500 |
commit | 3115e250ffded1270531fb6bdb3df8b2214fba1a (patch) | |
tree | 1c5ad12595244bc501ba605b8082251abac4c9be /indra | |
parent | e7b743d80bb6e7bde9c90eb0a7f0e0244bb41f8d (diff) |
SH-2244 Don't use VAO's outside of core profile (performance improvement)
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index f822a7babd..75c7153222 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -1065,7 +1065,7 @@ void LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create) createGLBuffer(); createGLIndices(); - if (gGLManager.mHasVertexArrayObject && useVBOs()) + if (gGLManager.mHasVertexArrayObject && useVBOs() && LLRender::sGLCoreProfile) { glGenVertexArrays(1, &mGLArray); } |