mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
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:
parent
442d4586b7
commit
a54aa40dbe
@ -21,9 +21,6 @@ main (int argc, char **argv)
|
|||||||
fprintf (stderr, "Failed to create context: %s\n", error->message);
|
fprintf (stderr, "Failed to create context: %s\n", error->message);
|
||||||
return 1;
|
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);
|
onscreen = cogl_onscreen_new (ctx, 640, 480);
|
||||||
/* Eventually there will be an implicit allocate on first use so this
|
/* Eventually there will be an implicit allocate on first use so this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user