Mesa (master): st/dri: Install APPLE_vertex_array_object functions

Nicolai Hähnle nh at kemper.freedesktop.org
Sat Oct 3 15:42:57 UTC 2009


Module: Mesa
Branch: master
Commit: fce2095a90440d1c129583fb8b6c26a93d4bde13
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fce2095a90440d1c129583fb8b6c26a93d4bde13

Author: Nicolai Hähnle <nhaehnle at gmail.com>
Date:   Sat Oct  3 17:39:32 2009 +0200

st/dri: Install APPLE_vertex_array_object functions

Besides from being necessary to use that extension, it also fixes a crash
when deleting the currently bound vertex array object.

Signed-off-by: Nicolai Hähnle <nhaehnle at gmail.com>

---

 src/gallium/state_trackers/dri/dri_extensions.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/dri/dri_extensions.c b/src/gallium/state_trackers/dri/dri_extensions.c
index 8c5cef6..f39a305 100644
--- a/src/gallium/state_trackers/dri/dri_extensions.c
+++ b/src/gallium/state_trackers/dri/dri_extensions.c
@@ -53,6 +53,7 @@
 #define need_GL_EXT_framebuffer_object
 #define need_GL_EXT_multi_draw_arrays
 #define need_GL_EXT_secondary_color
+#define need_GL_APPLE_vertex_array_object
 #define need_GL_NV_vertex_program
 #define need_GL_VERSION_2_0
 #define need_GL_VERSION_2_1
@@ -105,6 +106,7 @@ const struct dri_extension card_extensions[] = {
    {"GL_EXT_texture_lod_bias", NULL},
    {"GL_3DFX_texture_compression_FXT1", NULL},
    {"GL_APPLE_client_storage", NULL},
+   {"GL_APPLE_vertex_array_object", GL_APPLE_vertex_array_object_functions},
    {"GL_MESA_pack_invert", NULL},
    {"GL_MESA_ycbcr_texture", NULL},
    {"GL_NV_blend_square", NULL},




More information about the mesa-commit mailing list