Lines Matching defs:ctx
103 void crStateBufferObjectInit (CRContext *ctx)
107 CRBufferObjectState *b = &ctx->bufferobject;
109 RESET(bb->dirty, ctx->bitid);
110 RESET(bb->arrayBinding, ctx->bitid);
111 RESET(bb->elementsBinding, ctx->bitid);
113 RESET(bb->unpackBinding, ctx->bitid);
114 RESET(bb->packBinding, ctx->bitid);
133 ctx->shared->bVBOResyncNeeded = GL_FALSE;
151 void crStateBufferObjectDestroy (CRContext *ctx)
153 CRBufferObjectState *b = &ctx->bufferobject;
281 static void ctStateBuffersRefsCleanup(CRContext *ctx, CRBufferObject *obj, CRbitvalue *neg_bitid)
283 CRBufferObjectState *b = &(ctx->bufferobject);
322 CRClientPointer *cp = crStateGetClientPointerByIndex(j, &ctx->client.array);
330 for (k=0; k<ctx->client.vertexArrayStackDepth; ++k)
332 CRVertexArrays *pArray = &ctx->client.vertexArrayStack[k];
345 CR_STATE_SHAREDOBJ_USAGE_CLEAR(obj, ctx);
383 CRContext *ctx = g_pAvailableContexts[j];
384 if (j && ctx)
386 ctStateBuffersRefsCleanup(ctx, obj, g->neg_bitid); /* <- yes, use g->neg_bitid, i.e. neg_bitid of the current context to ensure others bits get dirtified,