From 0205a96efbbd78e018710211ca5dd75f613c9b3e Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 10 Apr 2012 19:11:25 +0100 Subject: [PATCH] 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 --- examples/cogl-crate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/cogl-crate.c b/examples/cogl-crate.c index 969dc5c83..61b9cae03 100644 --- a/examples/cogl-crate.c +++ b/examples/cogl-crate.c @@ -151,8 +151,6 @@ main (int argc, char **argv) CoglDepthState depth_state; gboolean has_swap_notify; - g_type_init (); - ctx = cogl_context_new (NULL, &error); if (!ctx) { fprintf (stderr, "Failed to create context: %s\n", error->message);