mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
09c04d4c67
commit
1ce25ffbb2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user