[cogl] cogl-pipeline-fragend-arbfp: Initialise template_pipeline



commit 1287d264446317e739b208a2b513396606751c65
Author: Neil Roberts <neil linux intel com>
Date:   Tue Jul 26 17:33:27 2011 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-pipeline-fragend-arbfp.c b/cogl/cogl-pipeline-fragend-arbfp.c
index aed5d96..f02aec2 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]