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:
Robert Bragg 2011-01-21 17:28:34 +00:00
parent 9b0fd92527
commit affce86924

View File

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