summaryrefslogtreecommitdiff
path: root/cogl/cogl-feature-private.c
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-feature-private.c')
-rw-r--r--cogl/cogl-feature-private.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/cogl/cogl-feature-private.c b/cogl/cogl-feature-private.c
index e6f0bd3f..7883b3cb 100644
--- a/cogl/cogl-feature-private.c
+++ b/cogl/cogl-feature-private.c
@@ -45,6 +45,7 @@ _cogl_feature_check (CoglRenderer *renderer,
{
const char *suffix = NULL;
int func_num;
+ CoglBool in_core;
/* First check whether the functions should be directly provided by
GL */
@@ -55,7 +56,10 @@ _cogl_feature_check (CoglRenderer *renderer,
(data->gles_availability & COGL_EXT_IN_GLES)) ||
(driver == COGL_DRIVER_GLES2 &&
(data->gles_availability & COGL_EXT_IN_GLES2)))
- suffix = "";
+ {
+ suffix = "";
+ in_core = TRUE;
+ }
else
{
/* Otherwise try all of the extensions */
@@ -107,6 +111,8 @@ _cogl_feature_check (CoglRenderer *renderer,
break;
}
}
+
+ in_core = FALSE;
}
/* If we couldn't find anything that provides the functions then
@@ -122,7 +128,9 @@ _cogl_feature_check (CoglRenderer *renderer,
full_function_name = g_strconcat (data->functions[func_num].name,
suffix, NULL);
- func = _cogl_renderer_get_proc_address (renderer, full_function_name);
+ func = _cogl_renderer_get_proc_address (renderer,
+ full_function_name,
+ in_core);
g_free (full_function_name);
if (func == NULL)