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:
Robert Bragg 2010-12-08 16:27:57 +00:00
parent ea8c9f3b27
commit ba95ee66a3

View File

@ -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;