Lines Matching refs:current_item
8302 _item& current_item = items[n_item];
8304 current_item.stage.function1_index =
8305 gl.getSubroutineIndex(current_item.po_id, current_item.so_type, "function1");
8306 current_item.stage.function2_index =
8307 gl.getSubroutineIndex(current_item.po_id, current_item.so_type, "function2");
8308 current_item.stage.function3_index =
8309 gl.getSubroutineIndex(current_item.po_id, current_item.so_type, "function3");
8310 current_item.stage.function4_index =
8311 gl.getSubroutineIndex(current_item.po_id, current_item.so_type, "function4");
8314 if (current_item.stage.function1_index == GL_INVALID_INDEX ||
8315 current_item.stage.function2_index == GL_INVALID_INDEX ||
8316 current_item.stage.function3_index == GL_INVALID_INDEX ||
8317 current_item.stage.function4_index == GL_INVALID_INDEX)
8322 current_item.stage.subroutine1_uniform_location =
8323 gl.getSubroutineUniformLocation(current_item.po_id, current_item.so_type, "subroutine1");
8324 current_item.stage.subroutine2_uniform_location =
8325 gl.getSubroutineUniformLocation(current_item.po_id, current_item.so_type, "subroutine2");
8326 current_item.stage.subroutine3_uniform_location =
8327 gl.getSubroutineUniformLocation(current_item.po_id, current_item.so_type, "subroutine3");
8328 current_item.stage.subroutine4_uniform_location =
8329 gl.getSubroutineUniformLocation(current_item.po_id, current_item.so_type, "subroutine4");
8332 if (current_item.stage.subroutine1_uniform_location == -1 ||
8333 current_item.stage.subroutine2_uniform_location == -1 ||
8334 current_item.stage.subroutine3_uniform_location == -1 ||
8335 current_item.stage.subroutine4_uniform_location == -1)
8340 if (m_po_ids[n_id] == current_item.po_id)
8342 gl.useProgram(current_item.po_id);
8352 gl.getUniformSubroutineuiv(current_item.so_type, current_item.stage.subroutine1_uniform_location,
8353 ¤t_item.stage.default_subroutine1_value);
8354 gl.getUniformSubroutineuiv(current_item.so_type, current_item.stage.subroutine2_uniform_location,
8355 ¤t_item.stage.default_subroutine2_value);
8356 gl.getUniformSubroutineuiv(current_item.so_type, current_item.stage.subroutine3_uniform_location,
8357 ¤t_item.stage.default_subroutine3_value);
8358 gl.getUniformSubroutineuiv(current_item.so_type, current_item.stage.subroutine4_uniform_location,
8359 ¤t_item.stage.default_subroutine4_value);
8362 current_item.stage.gl_stage = current_item.so_type;
8364 if (m_po_ids[n_id] != current_item.po_id)