diff options
author | Brian Paul <[email protected]> | 2009-06-10 13:44:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-12 16:01:02 -0600 |
commit | d7ea9ddf5824556e47decac7ba200f37cf1e552f (patch) | |
tree | e1c009acb8703db7b83eb118d4dbe48ffd536982 /src/mesa/vbo/vbo_split_copy.c | |
parent | 193177b732175970c2ebec1faf88dc2efee57693 (diff) |
mesa: use _mesa_reference_buffer_object() in a few places
Diffstat (limited to 'src/mesa/vbo/vbo_split_copy.c')
-rw-r--r-- | src/mesa/vbo/vbo_split_copy.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index dcb14c868b8..2725cc82b73 100644 --- a/src/mesa/vbo/vbo_split_copy.c +++ b/src/mesa/vbo/vbo_split_copy.c @@ -30,6 +30,7 @@ */ #include "main/glheader.h" +#include "main/bufferobj.h" #include "main/imports.h" #include "main/image.h" #include "main/macros.h" @@ -517,7 +518,8 @@ replay_init( struct copy_context *copy ) dst->Ptr = copy->dstbuf + offset; dst->Enabled = GL_TRUE; dst->Normalized = src->Normalized; - dst->BufferObj = ctx->Shared->NullBufferObj; + _mesa_reference_buffer_object(ctx, &dst->BufferObj, + ctx->Shared->NullBufferObj); dst->_MaxElement = copy->dstbuf_size; /* may be less! */ offset += copy->varying[i].size; @@ -537,7 +539,8 @@ replay_init( struct copy_context *copy ) */ copy->dstib.count = 0; /* duplicates dstelt_nr */ copy->dstib.type = GL_UNSIGNED_INT; - copy->dstib.obj = ctx->Shared->NullBufferObj; + _mesa_reference_buffer_object(ctx, ©->dstib.obj, + ctx->Shared->NullBufferObj); copy->dstib.ptr = copy->dstelt; } |