[cogl] cogl-crate: remove redundant g_type_init
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] cogl-crate: remove redundant g_type_init
- Date: Wed, 11 Apr 2012 11:32:59 +0000 (UTC)
commit 0205a96efbbd78e018710211ca5dd75f613c9b3e
Author: Robert Bragg <robert linux intel com>
Date: Tue Apr 10 19:11:25 2012 +0100
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>
examples/cogl-crate.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/examples/cogl-crate.c b/examples/cogl-crate.c
index 969dc5c..61b9cae 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]