summaryrefslogtreecommitdiff
path: root/src/mesa/vbo/vbo_context.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-10 13:44:35 -0600
committerBrian Paul <brianp@vmware.com>2009-06-12 16:01:02 -0600
commitd7ea9ddf5824556e47decac7ba200f37cf1e552f (patch)
treee1c009acb8703db7b83eb118d4dbe48ffd536982 /src/mesa/vbo/vbo_context.c
parent193177b732175970c2ebec1faf88dc2efee57693 (diff)
mesa: use _mesa_reference_buffer_object() in a few places
Diffstat (limited to 'src/mesa/vbo/vbo_context.c')
-rw-r--r--src/mesa/vbo/vbo_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index 90025f62fc..75c32e0b9b 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -153,7 +153,8 @@ static void init_mat_currval(GLcontext *ctx)
cl->Stride = 0;
cl->StrideB = 0;
cl->Enabled = 1;
- cl->BufferObj = ctx->Shared->NullBufferObj;
+ _mesa_reference_buffer_object(ctx, &cl->BufferObj,
+ ctx->Shared->NullBufferObj);
}
}