mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
cogl: make sure to init ctx->framebuffers
This makes sure to initialize ctx->framebuffers to NULL otherwise we can get apps crashing when they create their first framebuffer.
This commit is contained in:
parent
9b0fd92527
commit
affce86924
@ -166,6 +166,8 @@ cogl_create_context (void)
|
|||||||
_context->default_gl_texture_2d_tex = COGL_INVALID_HANDLE;
|
_context->default_gl_texture_2d_tex = COGL_INVALID_HANDLE;
|
||||||
_context->default_gl_texture_rect_tex = COGL_INVALID_HANDLE;
|
_context->default_gl_texture_rect_tex = COGL_INVALID_HANDLE;
|
||||||
|
|
||||||
|
_context->framebuffers = NULL;
|
||||||
|
|
||||||
_context->journal_flush_attributes_array =
|
_context->journal_flush_attributes_array =
|
||||||
g_array_new (TRUE, FALSE, sizeof (CoglAttribute *));
|
g_array_new (TRUE, FALSE, sizeof (CoglAttribute *));
|
||||||
_context->journal_clip_bounds = NULL;
|
_context->journal_clip_bounds = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user