cogl-crate: remove redundant g_type_init

Cogl internally will call g_type_init if necessary so the cogl-crate
example doesn't need to do this explicitly.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg 2012-04-10 19:11:25 +01:00
parent b61b328f51
commit 0205a96efb

View File

@ -151,8 +151,6 @@ main (int argc, char **argv)
CoglDepthState depth_state; CoglDepthState depth_state;
gboolean has_swap_notify; gboolean has_swap_notify;
g_type_init ();
ctx = cogl_context_new (NULL, &error); ctx = cogl_context_new (NULL, &error);
if (!ctx) { if (!ctx) {
fprintf (stderr, "Failed to create context: %s\n", error->message); fprintf (stderr, "Failed to create context: %s\n", error->message);