From f9d4846d6acc493b9fd52d627a82a0302d507a17 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 21 Jan 2011 17:28:34 +0000 Subject: [PATCH] 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. --- clutter/cogl/cogl/cogl-context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/cogl/cogl/cogl-context.c b/clutter/cogl/cogl/cogl-context.c index c1b061058..681940555 100644 --- a/clutter/cogl/cogl/cogl-context.c +++ b/clutter/cogl/cogl/cogl-context.c @@ -166,6 +166,8 @@ cogl_create_context (void) _context->default_gl_texture_2d_tex = COGL_INVALID_HANDLE; _context->default_gl_texture_rect_tex = COGL_INVALID_HANDLE; + _context->framebuffers = NULL; + _context->journal_flush_attributes_array = g_array_new (TRUE, FALSE, sizeof (CoglAttribute *)); _context->journal_clip_bounds = NULL;