From c383fdeeaec684f0eda404c04d188e7ad735f1d0 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 21 Apr 2011 16:44:15 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/clutter/cogl/cogl/cogl-context.c b/clutter/cogl/cogl/cogl-context.c index e226763e3..ac76d4fae 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);