SH-2244 Don't use VAO's outside of core profile (performance improvement)

meow-7.2.2
Dave Parks 2011-09-22 00:57:47 -05:00
parent e7b743d80b
commit 3115e250ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}