diff options
author | Brian Paul <[email protected]> | 2004-03-03 15:35:08 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-03 15:35:08 +0000 |
commit | 26895aa797060a38b42dfad21301f4b34b7de0d2 (patch) | |
tree | 510426993946a13d62484701145e894151a7275e /src/mesa/main/varray.c | |
parent | 5ee631c6ee0a7f60a310471df74d9bd24f40a261 (diff) |
more changes to VBO reference counting and deletion
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r-- | src/mesa/main/varray.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index c0b7bcfabe9..52f8c8cef95 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -25,6 +25,7 @@ #include "glheader.h" #include "imports.h" +#include "bufferobj.h" #include "context.h" #include "enable.h" #include "enums.h" @@ -59,6 +60,7 @@ update_array(GLcontext *ctx, struct gl_client_array *array, #if FEATURE_ARB_vertex_buffer_object array->BufferObj->RefCount--; if (array->BufferObj->RefCount <= 0) { + _mesa_remove_buffer_object( ctx, array->BufferObj ); (*ctx->Driver.DeleteBuffer)( ctx, array->BufferObj ); } array->BufferObj = ctx->Array.ArrayBufferObj; |