From 339b447075218847f376301010cd9dc6478cff37 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 6 Nov 2009 14:04:36 +0000 Subject: [PATCH] Do not pass flags to g_module_open(NULL) The flags are ignored when opening the main module, so we should pass 0 to avoid confusion when reading the source. --- cogl/cogl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl.c b/cogl/cogl.c index 2b028fca8..9ebd40e8b 100644 --- a/cogl/cogl.c +++ b/cogl/cogl.c @@ -97,8 +97,8 @@ cogl_get_proc_address (const gchar* name) /* this should find the right function if the program is linked against a * library providing it */ - if (module == NULL) - module = g_module_open (NULL, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL); + if (G_UNLIKELY (module == NULL)) + module = g_module_open (NULL, 0); if (module) {