From ff8130101aa4696b9c0403bc5067b6ef48de4cc8 Mon Sep 17 00:00:00 2001 From: Maxim Ermilov Date: Fri, 5 Nov 2010 20:20:14 +0300 Subject: [PATCH] CoglContext: correct initialization order http://bugzilla.clutter-project.org/show_bug.cgi?id=2401 --- cogl/cogl-context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c index 5cd544342..7a56a9ada 100644 --- a/cogl/cogl-context.c +++ b/cogl/cogl-context.c @@ -186,6 +186,8 @@ cogl_create_context (void) _context->framebuffer_stack = _cogl_create_framebuffer_stack (); + _context->current_clip_stack_valid = FALSE; + window_buffer = _cogl_onscreen_new (); cogl_set_framebuffer (window_buffer); /* XXX: the deprecated _cogl_set_draw_buffer API expects to @@ -210,8 +212,6 @@ cogl_create_context (void) _context->texture_download_pipeline = COGL_INVALID_HANDLE; - _context->current_clip_stack_valid = FALSE; - /* The default for GL_ALPHA_TEST is to always pass which is equivalent to * the test being disabled therefore we assume that for all drivers there * will be no performance impact if we always leave the test enabled which