mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 17:20:37 +02:00
Make sure instructions are zero'd out before use.
This commit is contained in:
parent
e595ce79d6
commit
fd6341e574
1 changed files with 1 additions and 0 deletions
|
|
@ -535,6 +535,7 @@ static void emit_op3fn(struct tnl_program *p,
|
|||
|
||||
{
|
||||
struct prog_instruction *inst = &p->program->Base.Instructions[nr];
|
||||
memset(inst, 0, sizeof(*inst));
|
||||
inst->Opcode = op;
|
||||
inst->StringPos = 0;
|
||||
inst->Data = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue