From a54aa40dbef26455bbab9fddb84c737fac3ac8d2 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 11 May 2011 16:39:10 +0100 Subject: [PATCH] don't call cogl_set_default_context in hello.c Actually calling cogl_set_default_context isn't required because cogl_context_new implicitly sets the new context to be the default context. Since we want to eventually get rid of the concept of a default context we'd rather not pollute the example with the concept. --- examples/hello.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/hello.c b/examples/hello.c index 62076ad0f..079dc4ecf 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -21,9 +21,6 @@ main (int argc, char **argv) fprintf (stderr, "Failed to create context: %s\n", error->message); return 1; } - /* Eventually we want to get rid of any "default context" but for now it's - * needed... */ - cogl_set_default_context (ctx); onscreen = cogl_onscreen_new (ctx, 640, 480); /* Eventually there will be an implicit allocate on first use so this