From: Brian Paul Date: Tue, 9 Sep 2003 15:10:44 +0000 (+0000) Subject: plug in vertex buffer object functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90f673e3ecdf5546b13ab8b549bb1b7023669107;p=mesa.git plug in vertex buffer object functions --- diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 36809fbe578..fa2ff4306b4 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -39,6 +39,9 @@ #include "attrib.h" #include "blend.h" #include "buffers.h" +#if FEATURE_ARB_vertex_buffer_object +#include "bufferobj.h" +#endif #include "clip.h" #include "colormac.h" #include "colortab.h" @@ -6595,7 +6598,22 @@ _mesa_init_dlist_table( struct _glapi_table *table, GLuint tableSize ) /* XXX todo */ /* ARB 27. GL_ARB_vertex_program */ /* XXX todo */ + /* ARB 28. GL_ARB_vertex_buffer_object */ +#if FEATURE_ARB_vertex_buffer_object + /* None of the extension functions get compiled */ + table->BindBufferARB = _mesa_BindBufferARB; + table->BufferDataARB = _mesa_BufferDataARB; + table->BufferSubDataARB = _mesa_BufferSubDataARB; + table->DeleteBuffersARB = _mesa_DeleteBuffersARB; + table->GenBuffersARB = _mesa_GenBuffersARB; + table->GetBufferParameterivARB = _mesa_GetBufferParameterivARB; + table->GetBufferPointervARB = _mesa_GetBufferPointervARB; + table->GetBufferSubDataARB = _mesa_GetBufferSubDataARB; + table->IsBufferARB = _mesa_IsBufferARB; + table->MapBufferARB = _mesa_MapBufferARB; + table->UnmapBufferARB = _mesa_UnmapBufferARB; +#endif /* XXX todo */ }