Lines Matching defs:to

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,
756 * We need to check if the GL_EXT_vertex/pixel_buffer_object extensions
759 * or needs to be tested for (-1).
771 /* XXX this check is temporary. We need to make the tilesort SPU plug
772 * GetString into the diff'ing table in order for this to really work.
796 const CRBufferObjectState *to = &(toCtx->bufferobject);
801 if (from->arrayBuffer != to->arrayBuffer)
803 GLuint bufferID = to->arrayBuffer ? to->arrayBuffer->hwid : 0;
813 from->arrayBuffer = to->arrayBuffer;
819 if (to->arrayBuffer && CHECKDIRTY(to->arrayBuffer->dirty, bitID))
822 CRBufferObject *bufObj = to->arrayBuffer;
844 if (from->elementsBuffer != to->elementsBuffer)
846 GLuint bufferID = to->elementsBuffer ? to->elementsBuffer->hwid : 0;
856 from->elementsBuffer = to->elementsBuffer;
862 if (to->elementsBuffer && CHECKDIRTY(to->elementsBuffer->dirty, bitID))
865 CRBufferObject *bufObj = to->elementsBuffer;
888 if (from->packBuffer != to->packBuffer)
890 GLuint bufferID = to->packBuffer ? to->packBuffer->hwid : 0;
900 from->packBuffer = to->packBuffer;
906 if (to->packBuffer && CHECKDIRTY(to->packBuffer->dirty, bitID))
909 CRBufferObject *bufObj = to->packBuffer;
931 if (from->unpackBuffer != to->unpackBuffer)
933 GLuint bufferID = to->unpackBuffer ? to->unpackBuffer->hwid : 0;
943 from->unpackBuffer = to->unpackBuffer;
949 if (to->unpackBuffer && CHECKDIRTY(to->unpackBuffer->dirty, bitID))
952 CRBufferObject *bufObj = to->unpackBuffer;
977 const CRBufferObjectState *to = &(toCtx->bufferobject);
999 "While it is entirely legal to create a buffer object by binding
1000 it to GL_ARRAY_BUFFER and loading it with data, then using it
1002 binding, such behavior is liable to confuse the driver and may
1023 CRBufferObjectState *to = &(toCtx->bufferobject);
1034 crHashtableWalk(toCtx->shared->buffersTable, crStateBufferObjectSyncCB, to);
1037 /*@todo, move to state_client.c*/
1113 diff_api.BindBufferARB(GL_ARRAY_BUFFER_ARB, to->arrayBuffer->hwid);
1114 diff_api.BindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, to->elementsBuffer->hwid);
1116 diff_api.BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, to->packBuffer->hwid);
1117 diff_api.BindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, to->unpackBuffer->hwid);