diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2003-10-09 15:13:30 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2003-10-09 15:13:30 +0000 |
commit | 1ffdad4939f7e52f27a131670a02749a3e251196 (patch) | |
tree | b2ea51b4b23d54c06a4465c6dc5bf498880f6efd /src/mesa/drivers | |
parent | d9f1e453ea775f2394d6e9cf0d307ab4e5334fec (diff) |
FEATURE_ARB_vertex_buffer_object
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dos/dmesa.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/mesa/drivers/dos/dmesa.c b/src/mesa/drivers/dos/dmesa.c index bfebb91396..3eaa214daf 100644 --- a/src/mesa/drivers/dos/dmesa.c +++ b/src/mesa/drivers/dos/dmesa.c @@ -34,6 +34,7 @@ #include "glheader.h" #include "context.h" #ifndef FX +#include "bufferobj.h" #include "extensions.h" #include "macros.h" #include "matrix.h" @@ -1143,7 +1144,7 @@ static const GLubyte* get_string (GLcontext *ctx, GLenum name) #ifdef MATROX " (MGA)" #endif - "\0port (c) Borca Daniel aug-2003"; + "\0port (c) Borca Daniel oct-2003"; default: return NULL; } @@ -1267,7 +1268,17 @@ static void dmesa_init_pointers (GLcontext *ctx) tnl = TNL_CONTEXT(ctx); tnl->Driver.RunPipeline = _tnl_run_pipeline; - dd->SetBuffer = set_buffer; +#if FEATURE_ARB_vertex_buffer_object + ctx->Driver.NewBufferObject = _mesa_new_buffer_object; + ctx->Driver.DeleteBuffer = _mesa_delete_buffer_object; + ctx->Driver.BindBuffer = NULL; + ctx->Driver.BufferData = _mesa_buffer_data; + ctx->Driver.BufferSubData = _mesa_buffer_subdata; + ctx->Driver.MapBuffer = _mesa_buffer_map; + ctx->Driver.UnmapBuffer = NULL; +#endif + + dd->SetBuffer = set_buffer; /* Install swsetup for tnl->Driver.Render.*: */ |