summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-09-27 16:19:17 +0000
committerBrian Paul <[email protected]>2004-09-27 16:19:17 +0000
commit293ad985103ceab90c126236af2f75617fce6b2b (patch)
treed6093d3b648c2f0e8914c22de848384303641c8e /src/mesa/main/varray.c
parente60c9311daeba49fcc221da82c29b35558ffc6ab (diff)
VBO RefCount fix (David Reveman)
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r--src/mesa/main/varray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 04d0a07e286..404302873b3 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -60,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) {
+ ASSERT(array->BufferObj->Name);
_mesa_remove_buffer_object( ctx, array->BufferObj );
(*ctx->Driver.DeleteBuffer)( ctx, array->BufferObj );
}