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.
This commit is contained in:
Neil Roberts 2009-11-09 11:50:16 +00:00
parent 2fca6087e9
commit 6c5110cb4b

View File

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