arbfp: initialize arbfp_program_state->next_constant_id
When allocating a new ArbfpProgramState struct when starting code generation we weren't initializing arbfp_program_state->next_constant_id to 0.
This commit is contained in:
parent
bac600b21b
commit
87b2300f98
@ -333,6 +333,7 @@ _cogl_pipeline_backend_arbfp_start (CoglPipeline *pipeline,
|
||||
arbfp_program_state->unit_state[i].sampled = FALSE;
|
||||
arbfp_program_state->unit_state[i].dirty_combine_constant = FALSE;
|
||||
}
|
||||
arbfp_program_state->next_constant_id = 0;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user