Lines Matching refs:ArrayObj
30 * \file arrayobj.c
49 #include "arrayobj.h"
125 * Set ptr to arrayObj w/ reference counting.
132 struct gl_array_object *arrayObj)
134 assert(*ptr != arrayObj);
145 printf("ArrayObj %p %d DECR to %d\n",
160 if (arrayObj) {
162 _glthread_LOCK_MUTEX(arrayObj->Mutex);
163 if (arrayObj->RefCount == 0) {
170 arrayObj->RefCount++;
172 printf("ArrayObj %p %d INCR to %d\n",
173 (void *) arrayObj, arrayObj->Name, arrayObj->RefCount);
175 *ptr = arrayObj;
177 _glthread_UNLOCK_MUTEX(arrayObj->Mutex);
285 * \return min(arrayObj->VertexAttrib[*]._MaxElement).
288 compute_max_element(struct gl_array_object *arrayObj, GLbitfield64 enabled)
297 client_array = &arrayObj->VertexAttrib[attrib];
312 struct gl_array_object *arrayObj)
318 enabled = _mesa_array_object_get_enabled_ff(arrayObj);
320 enabled = _mesa_array_object_get_enabled_nv(arrayObj);
322 enabled = _mesa_array_object_get_enabled_arb(arrayObj);
326 arrayObj->_MaxElement = compute_max_element(arrayObj, enabled);
343 struct gl_array_object * const oldObj = ctx->Array.ArrayObj;
393 _mesa_reference_array_object(ctx, &ctx->Array.ArrayObj, newObj);
459 if ( obj == ctx->Array.ArrayObj ) {