cl->Stride = 0;
cl->StrideB = 0;
cl->Enabled = 1;
- cl->BufferObj = ctx->Shared->NullBufferObj;
+ _mesa_reference_buffer_object(ctx, &cl->BufferObj,
+ ctx->Shared->NullBufferObj);
}
}
#include "main/glheader.h"
#include "main/imports.h"
#include "main/mtypes.h"
+#include "main/bufferobj.h"
#include "vbo.h"
GL_ELEMENT_ARRAY_BUFFER,
ib->obj);
- tmp_ib.obj = ctx->Shared->NullBufferObj;
+ _mesa_reference_buffer_object(ctx, &tmp_ib.obj,
+ ctx->Shared->NullBufferObj);
tmp_ib.ptr = tmp_indices;
tmp_ib.count = ib->count;
tmp_ib.type = ib->type;
*/
#include "main/glheader.h"
+#include "main/bufferobj.h"
#include "main/imports.h"
#include "main/image.h"
#include "main/macros.h"
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;
*/
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;
}