From d832172988270013bf30145a60dd2ff24dba10ac 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. --- cogl/cogl-context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c index e226763e3..ac76d4fae 100644 --- a/cogl/cogl-context.c +++ b/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);