Change _mesa_init_instruction() to initialize an array of instructions.

This commit is contained in:
Brian Paul
2006-10-29 18:03:16 +00:00
parent efd95c1084
commit d6272e0617
7 changed files with 29 additions and 24 deletions

View File

@@ -474,7 +474,7 @@ emit_op(struct texenv_fragment_program *p,
GLuint nr = p->program->Base.NumInstructions++;
struct prog_instruction *inst = &p->program->Base.Instructions[nr];
_mesa_init_instruction(inst);
_mesa_init_instructions(inst, 1);
inst->Opcode = op;
emit_arg( &inst->SrcReg[0], src0 );