Lines Matching refs:currentState

79     for (i=0; i<pProgram->currentState.cAttribs; ++i)
81 crFree(pProgram->currentState.pAttribs[i].name);
87 if (pProgram->currentState.pAttribs)
88 crFree(pProgram->currentState.pAttribs);
156 crFreeHashtable(pProgram->currentState.attachedShaders, crStateShaderDecRefCount);
371 pProgram->currentState.attachedShaders = crAllocHashtable();
375 pProgram->currentState.cAttribs = 0;
376 pProgram->currentState.pAttribs = NULL;
444 if (crHashtableSearch(pProgram->currentState.attachedShaders, shader))
460 crHashtableAdd(pProgram->currentState.attachedShaders, shader, pShader);
474 pShader = (CRGLSLShader *) crHashtableSearch(pProgram->currentState.attachedShaders, shader);
481 crHashtableDelete(pProgram->currentState.attachedShaders, shader, NULL);
603 crMemcpy(&pProgram->activeState, &pProgram->currentState, sizeof(CRGLSLProgramState));
611 crHashtableWalk(pProgram->currentState.attachedShaders, crStateCopyShaderCB, pProgram);
621 crMemcpy(&pProgram->activeState.pAttribs[i], &pProgram->currentState.pAttribs[i], sizeof(CRGLSLAttrib));
622 pProgram->activeState.pAttribs[i].name = crStrdup(pProgram->currentState.pAttribs[i].name);
650 for (i=0; i<pProgram->currentState.cAttribs; ++i)
652 if (!crStrcmp(pProgram->currentState.pAttribs[i].name, name))
654 pProgram->currentState.pAttribs[i].index = index;
659 pAttribs = (CRGLSLAttrib*) crAlloc((pProgram->currentState.cAttribs+1)*sizeof(CRGLSLAttrib));
666 if (pProgram->currentState.cAttribs)
668 crMemcpy(&pAttribs[0], &pProgram->currentState.pAttribs[0], pProgram->currentState.cAttribs*sizeof(CRGLSLAttrib));
670 pAttribs[pProgram->currentState.cAttribs].index = index;
671 pAttribs[pProgram->currentState.cAttribs].name = crStrdup(name);
673 pProgram->currentState.cAttribs++;
674 if (pProgram->currentState.pAttribs) crFree(pProgram->currentState.pAttribs);
675 pProgram->currentState.pAttribs = pAttribs;
1495 crHashtableWalk(pProgram->currentState.attachedShaders, crStateAttachShaderCB, pProgram);