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
This commit is contained in:
Neil Roberts 2011-07-26 17:33:27 +01:00
parent a9184d5cb7
commit 1287d26444

View File

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