From 6c5110cb4b80faf671b49c0eb98b689e18826a7c Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 9 Nov 2009 11:50:16 +0000 Subject: [PATCH] cogl: Add an initialiser for enable_flags in cogl_begin_gl This fixes a warning about an uninitialised value. It could also potentially fix some crashes for example if the enable_flags value happened to include a bit for enabling a vertex array if no vertex buffer pointer was set. --- cogl/cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl.c b/cogl/cogl.c index 9ebd40e8b..b4ce48718 100644 --- a/cogl/cogl.c +++ b/cogl/cogl.c @@ -663,7 +663,7 @@ void cogl_begin_gl (void) { CoglMaterialFlushOptions options; - gulong enable_flags; + gulong enable_flags = 0; int i; _COGL_GET_CONTEXT (ctx, NO_RETVAL);