[cogl] Fixed uninitialized data (current_clip_stack_valid) in context creation
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] Fixed uninitialized data (current_clip_stack_valid) in context creation
- Date: Wed, 27 Jul 2011 14:56:00 +0000 (UTC)
commit 76c88958b72dccc98586f00b2ac43d4377fa71b1
Author: Kirk A. Baker <kbaker camerabits com>
Date: Mon Jul 11 21:37:09 2011 -0700
Fixed uninitialized data (current_clip_stack_valid) in context creation
Reviewed-By: Robert Bragg <robert linux intel com>
cogl/cogl-context.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index 90ef988..aa8bae8 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -213,6 +213,8 @@ cogl_context_new (CoglDisplay *display,
_cogl_pipeline_init_layer_state_hash_functions ();
context->enable_flags = 0;
+ context->current_clip_stack_valid = FALSE;
+ context->current_clip_stack = NULL;
context->enable_backface_culling = FALSE;
context->flushed_front_winding = COGL_FRONT_WINDING_COUNTER_CLOCKWISE;
@@ -309,8 +311,6 @@ cogl_context_new (CoglDisplay *display,
cogl_object_unref (COGL_FRAMEBUFFER (window));
}
- _context->current_clip_stack_valid = FALSE;
-
context->dirty_bound_framebuffer = TRUE;
context->dirty_gl_viewport = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]