summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r--indra/llrender/llrender.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index 89de6b93ea..91ce983e5a 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -906,9 +906,13 @@ void LLRender::init(bool needs_vertex_buffer)
{ //bind a dummy vertex array object so we're core profile compliant
//#ifdef GL_ARB_vertex_array_object
U32 ret;
+#if GL_APPLE_vertex_array_object
+ glGenVertexArraysAPPLE(1, &ret);
+ glBindVertexArrayAPPLE(ret);
+#else
glGenVertexArrays(1, &ret);
glBindVertexArray(ret);
-//#endif
+#endif
}
if (needs_vertex_buffer)