Lines Matching refs:stateId
297 GLuint stateId = hwid;
300 CRASSERT(!crStateGetShaderObj(stateId));
305 stateId = crHashtableAllocKeys(g->glsl.programs, 1);
306 if (!stateId)
312 Assert((pShader = crStateGetShaderObj(stateId)) == NULL);
322 pShader->id = stateId;
330 crHashtableAdd(g->glsl.shaders, stateId, pShader);
332 return stateId;
339 GLuint stateId = hwid;
342 pProgram = crStateGetProgramObj(stateId);
345 crWarning("Program object %d already exists!", stateId);
346 crStateDeleteProgram(stateId);
347 CRASSERT(!crStateGetProgramObj(stateId));
350 stateId = crHashtableAllocKeys(g->glsl.programs, 1);
351 if (!stateId)
365 pProgram->id = stateId;
389 crHashtableAdd(g->glsl.programs, stateId, pProgram);
391 return stateId;