CoglContext: correct initialization order
authorMaxim Ermilov <zaspire@rambler.ru>
Fri, 5 Nov 2010 17:20:14 +0000 (20:20 +0300)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sat, 6 Nov 2010 18:06:19 +0000 (18:06 +0000)
http://bugzilla.clutter-project.org/show_bug.cgi?id=2401

clutter/cogl/cogl/cogl-context.c

index 5cd5443..7a56a9a 100644 (file)
@@ -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