Lines Matching defs:pRestoreCtx
246 void packspuZvaEnable(ContextInfo *pCtx, const GLfloat *pValue, GLuint cValues, CR_ZVA_RESTORE_CTX *pRestoreCtx)
260 pRestoreCtx->pCtx = pCtx;
261 pRestoreCtx->idBuffer = g->bufferobject.arrayBuffer ? g->bufferobject.arrayBuffer->id : 0;
262 pRestoreCtx->cp = g->client.array.a[0];
264 Assert(!pRestoreCtx->cp.enabled);
268 if (pRestoreCtx->cp.buffer)
269 pRestoreCtx->cp.buffer->refCount++;
283 void packspuZvaDisable(CR_ZVA_RESTORE_CTX *pRestoreCtx)
285 if (pRestoreCtx->cp.buffer)
286 pack_spu.self.BindBufferARB(GL_ARRAY_BUFFER_ARB, pRestoreCtx->cp.buffer->id);
290 pack_spu.self.VertexAttribPointerARB(0, pRestoreCtx->cp.size, pRestoreCtx->cp.type,
291 pRestoreCtx->cp.normalized, /*normalized*/
292 pRestoreCtx->cp.stride, /*stride*/
293 pRestoreCtx->cp.p);
295 if (pRestoreCtx->cp.enabled)
300 if (pRestoreCtx->cp.buffer)
302 if (pRestoreCtx->cp.buffer->id != pRestoreCtx->idBuffer)
303 pack_spu.self.BindBufferARB(GL_ARRAY_BUFFER_ARB, pRestoreCtx->idBuffer);
306 pRestoreCtx->cp.buffer->refCount--;
310 if (pRestoreCtx->idBuffer)
311 pack_spu.self.BindBufferARB(GL_ARRAY_BUFFER_ARB, pRestoreCtx->idBuffer);
316 CRContext *g = pRestoreCtx->pCtx->clientState;
321 Assert(pRestoreCtx->cp.p == g->client.array.a[0].p);
322 Assert(pRestoreCtx->cp.size == g->client.array.a[0].size);
323 Assert(pRestoreCtx->cp.type == g->client.array.a[0].type);
324 Assert(pRestoreCtx->cp.stride == g->client.array.a[0].stride);
325 Assert(pRestoreCtx->cp.enabled == g->client.array.a[0].enabled);
326 Assert(pRestoreCtx->cp.normalized == g->client.array.a[0].normalized);
327 Assert(pRestoreCtx->cp.bytesPerIndex == g->client.array.a[0].bytesPerIndex);
329 Assert(pRestoreCtx->cp.buffer == g->client.array.a[0].buffer);
332 Assert(pRestoreCtx->cp.locked == g->client.array.a[0].locked);
334 Assert(pRestoreCtx->idBuffer == (g->bufferobject.arrayBuffer ? g->bufferobject.arrayBuffer->id : 0));