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.
This commit is contained in:
Robert Bragg 2011-05-11 16:39:10 +01:00
parent 442d4586b7
commit a54aa40dbe

View File

@ -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