CoglContext: correct initialization order

http://bugzilla.clutter-project.org/show_bug.cgi?id=2401
This commit is contained in:
Maxim Ermilov 2010-11-05 20:20:14 +03:00 committed by Emmanuele Bassi
parent ee59c83e17
commit 6ec9c3247c

View 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