Fixed uninitialized data (current_clip_stack_valid) in context creation

Reviewed-By: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Kirk A. Baker 2011-07-11 21:37:09 -07:00 committed by Robert Bragg
parent 1287d26444
commit 76c88958b7

View File

@ -213,6 +213,8 @@ cogl_context_new (CoglDisplay *display,
_cogl_pipeline_init_layer_state_hash_functions (); _cogl_pipeline_init_layer_state_hash_functions ();
context->enable_flags = 0; context->enable_flags = 0;
context->current_clip_stack_valid = FALSE;
context->current_clip_stack = NULL;
context->enable_backface_culling = FALSE; context->enable_backface_culling = FALSE;
context->flushed_front_winding = COGL_FRONT_WINDING_COUNTER_CLOCKWISE; context->flushed_front_winding = COGL_FRONT_WINDING_COUNTER_CLOCKWISE;
@ -309,8 +311,6 @@ cogl_context_new (CoglDisplay *display,
cogl_object_unref (COGL_FRAMEBUFFER (window)); cogl_object_unref (COGL_FRAMEBUFFER (window));
} }
_context->current_clip_stack_valid = FALSE;
context->dirty_bound_framebuffer = TRUE; context->dirty_bound_framebuffer = TRUE;
context->dirty_gl_viewport = TRUE; context->dirty_gl_viewport = TRUE;