Skip to content
Snippets Groups Projects
Commit 3115e250 authored by David Parks's avatar David Parks
Browse files

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

parent e7b743d8
No related branches found
No related tags found
No related merge requests found
...@@ -1065,7 +1065,7 @@ void LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create) ...@@ -1065,7 +1065,7 @@ void LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create)
createGLBuffer(); createGLBuffer();
createGLIndices(); createGLIndices();
if (gGLManager.mHasVertexArrayObject && useVBOs()) if (gGLManager.mHasVertexArrayObject && useVBOs() && LLRender::sGLCoreProfile)
{ {
glGenVertexArrays(1, &mGLArray); glGenVertexArrays(1, &mGLArray);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment