mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[cogl] Initialize boolean flag in CoglContext
The private CoglContext is created using g_malloc() and not zeroed; this means we have to initialize the values we are going to check, to avoid hitting garbage. Thanks to Tommi Komulainen.
This commit is contained in:
parent
c50bd8b24e
commit
949e37d332
@ -56,6 +56,8 @@ cogl_create_context ()
|
||||
|
||||
_context->enable_flags = 0;
|
||||
|
||||
_context->enable_backface_culling = FALSE;
|
||||
|
||||
_context->material_handles = NULL;
|
||||
_context->material_layer_handles = NULL;
|
||||
_context->default_material = cogl_material_new ();
|
||||
|
@ -58,6 +58,8 @@ cogl_create_context ()
|
||||
|
||||
_context->enable_flags = 0;
|
||||
|
||||
_context->enable_backface_culling = FALSE;
|
||||
|
||||
_context->material_handles = NULL;
|
||||
_context->material_layer_handles = NULL;
|
||||
_context->default_material = cogl_material_new ();
|
||||
|
Loading…
Reference in New Issue
Block a user