st/mesa: enable GL_APPLE_vertex_array_object for gallium drivers
authorBrian Paul <brianp@vmware.com>
Wed, 13 May 2009 17:15:00 +0000 (11:15 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 13 May 2009 17:22:21 +0000 (11:22 -0600)
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_extensions.c

index a94e11fff12ba098089ee4013f14caeb1c5ed296..f5d802055f501f4e764560c74f946a27ebee8ab8 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "main/imports.h"
 #include "main/mtypes.h"
+#include "main/arrayobj.h"
 #include "main/bufferobj.h"
 
 #include "st_inlines.h"
@@ -307,4 +308,8 @@ st_init_bufferobject_functions(struct dd_function_table *functions)
    functions->MapBufferRange = st_bufferobj_map_range;
    functions->FlushMappedBufferRange = st_bufferobj_flush_mapped_range;
    functions->UnmapBuffer = st_bufferobj_unmap;
+
+   /* For GL_APPLE_vertex_array_object */
+   functions->NewArrayObject = _mesa_new_array_object;
+   functions->DeleteArrayObject = _mesa_delete_array_object;
 }
index 8f6be507742fcb386bb57b4af4ccb3852e6834c1..d526dfcf52eba37e9fcac9794023de565054d1b5 100644 (file)
@@ -168,6 +168,8 @@ void st_init_extensions(struct st_context *st)
    ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE;
    ctx->Extensions.EXT_texture_lod_bias = GL_TRUE;
 
+   ctx->Extensions.APPLE_vertex_array_object = GL_TRUE;
+
    ctx->Extensions.NV_blend_square = GL_TRUE;
    ctx->Extensions.NV_texgen_reflection = GL_TRUE;