diff --git a/clutter/cogl/cogl/cogl-context.c b/clutter/cogl/cogl/cogl-context.c index 5cd544342..7a56a9ada 100644 --- a/clutter/cogl/cogl/cogl-context.c +++ b/clutter/cogl/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