[cogl/wip/rib/cogl-1.12: 30/142] cogl-crate: remove redundant g_type_init



commit a578cc328041e880586d94d743525615747c7a80
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>
    
    (cherry picked from commit 0205a96efbbd78e018710211ca5dd75f613c9b3e)

 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]