Add the group from cogl_get_option_group() to the GOptionContext

Otherwise it's not possible to use the COGL_DEBUG environment variable.

https://bugzilla.gnome.org/show_bug.cgi?id=609350
This commit is contained in:
Neil Roberts 2010-02-08 17:41:53 +00:00 committed by Tomas Frydrych
parent fb3d352d3a
commit bd90fd7033

View File

@ -341,6 +341,7 @@ meta_parse_options (int *argc, char ***argv,
ctx = g_option_context_new (NULL);
g_option_context_add_main_entries (ctx, options, "mutter");
g_option_context_add_group (ctx, clutter_get_option_group_without_init ());
g_option_context_add_group (ctx, cogl_get_option_group ());
if (!g_option_context_parse (ctx, argc, argv, &error))
{