Lines Matching refs:state_tokens
2326 gl_state_index state_tokens[STATE_LENGTH];
2329 memcpy(state_tokens, tokens, sizeof(state_tokens));
2337 if ((state_tokens[0] == STATE_MODELVIEW_MATRIX ||
2338 state_tokens[0] == STATE_PROJECTION_MATRIX ||
2339 state_tokens[0] == STATE_MVP_MATRIX ||
2340 state_tokens[0] == STATE_TEXTURE_MATRIX ||
2341 state_tokens[0] == STATE_PROGRAM_MATRIX)
2342 && (state_tokens[2] != state_tokens[3])) {
2344 const int first_row = state_tokens[2];
2345 const int last_row = state_tokens[3];
2348 state_tokens[2] = state_tokens[3] = row;
2350 idx = add_state_reference(prog->Parameters, state_tokens);
2360 idx = add_state_reference(prog->Parameters, state_tokens);
2378 gl_state_index state_tokens[STATE_LENGTH];
2381 memcpy(state_tokens, tokens, sizeof(state_tokens));
2383 assert((state_tokens[0] == STATE_VERTEX_PROGRAM)
2384 || (state_tokens[0] == STATE_FRAGMENT_PROGRAM));
2385 assert((state_tokens[1] == STATE_ENV)
2386 || (state_tokens[1] == STATE_LOCAL));
2398 if (state_tokens[2] != state_tokens[3]) {
2400 const int first_row = state_tokens[2];
2401 const int last_row = state_tokens[3];
2404 state_tokens[2] = state_tokens[3] = row;
2406 idx = add_state_reference(prog->Parameters, state_tokens);
2415 idx = add_state_reference(prog->Parameters, state_tokens);