From 1287d264446317e739b208a2b513396606751c65 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 26 Jul 2011 17:33:27 +0100 Subject: [PATCH] cogl-pipeline-fragend-arbfp: Initialise template_pipeline The template_pipeline variable in _cogl_pipeline_fragend_arbfp_start was not being initialised if the program caches are disabled with COGL_DEBUG=disable-program-caches so it would crash. The other backends have a similar variable but they already initialise it. https://bugzilla.gnome.org/show_bug.cgi?id=655400 --- cogl/cogl-pipeline-fragend-arbfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-pipeline-fragend-arbfp.c b/cogl/cogl-pipeline-fragend-arbfp.c index aed5d9698..f02aec296 100644 --- a/cogl/cogl-pipeline-fragend-arbfp.c +++ b/cogl/cogl-pipeline-fragend-arbfp.c @@ -152,7 +152,7 @@ _cogl_pipeline_fragend_arbfp_start (CoglPipeline *pipeline, { CoglPipelineShaderState *shader_state; CoglPipeline *authority; - CoglPipeline *template_pipeline; + CoglPipeline *template_pipeline = NULL; CoglHandle user_program; _COGL_GET_CONTEXT (ctx, FALSE);