From 87b2300f98727525267a6849c36c74849ea993fd Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 8 Dec 2010 16:27:57 +0000 Subject: [PATCH] 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. --- clutter/cogl/cogl/cogl-pipeline-arbfp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/cogl/cogl/cogl-pipeline-arbfp.c b/clutter/cogl/cogl/cogl-pipeline-arbfp.c index 45b471668..e5235c7d1 100644 --- a/clutter/cogl/cogl/cogl-pipeline-arbfp.c +++ b/clutter/cogl/cogl/cogl-pipeline-arbfp.c @@ -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;