mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
core: Don't initialize the GType system with --disable-glib
--disable-glib also defines COGL_HAS_GTYPE_SUPPORT to #ifdef out GType support in cogl. This also means we don't want to initialize glib's type system in that case. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 67ad777099d62bdbc8515f6ee58ed80429cc6496)
This commit is contained in:
parent
27fb294887
commit
eb92b512c6
@ -800,7 +800,9 @@ _cogl_init (void)
|
||||
bindtextdomain (GETTEXT_PACKAGE, COGL_LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
|
||||
#ifdef COGL_HAS_GTYPE_SUPPORT
|
||||
g_type_init ();
|
||||
#endif
|
||||
|
||||
_cogl_config_read ();
|
||||
_cogl_debug_check_environment ();
|
||||
|
Loading…
Reference in New Issue
Block a user