[clutter] cogl-context: Initialize context->stub_winsys



commit c383fdeeaec684f0eda404c04d188e7ad735f1d0
Author: Neil Roberts <neil linux intel com>
Date:   Thu Apr 21 16:44:15 2011 +0100

    cogl-context: Initialize context->stub_winsys
    
    If Cogl is built using a full Winsys then it wasn't initialising
    context->stub_winsys which sometimes made it crash later on.

 clutter/cogl/cogl/cogl-context.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cogl/cogl/cogl-context.c b/clutter/cogl/cogl/cogl-context.c
index e226763..ac76d4f 100644
--- a/clutter/cogl/cogl/cogl-context.c
+++ b/clutter/cogl/cogl/cogl-context.c
@@ -154,6 +154,7 @@ cogl_context_new (CoglDisplay *display,
   context->display = display;
 
 #ifdef COGL_HAS_FULL_WINSYS
+  context->stub_winsys = FALSE;
   if (!_cogl_winsys_context_init (context, error))
     {
       cogl_object_unref (display);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]