summaryrefslogtreecommitdiff
path: root/cogl/cogl-feature-private.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2016-01-12 17:35:06 -0500
committerRay Strode <rstrode@redhat.com>2016-01-12 17:35:06 -0500
commitf19a275b44d84982828dfac64033e487130c2760 (patch)
tree0ba39a02dfe1de74e5683b18d1b7578607749bb5 /cogl/cogl-feature-private.c
parent3e72da3eb1260166a3d1709f6dd71db8b3a97625 (diff)
downloadcogl-wip/rstrode/prepare-for-mutter-merge.tar.gz
Diffstat (limited to 'cogl/cogl-feature-private.c')
-rw-r--r--cogl/cogl-feature-private.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/cogl/cogl-feature-private.c b/cogl/cogl-feature-private.c
index 7c160c3c..a38a1f9f 100644
--- a/cogl/cogl-feature-private.c
+++ b/cogl/cogl-feature-private.c
@@ -53,20 +53,10 @@ _cogl_feature_check (CoglRenderer *renderer,
{
const char *suffix = NULL;
int func_num;
- CoglExtGlesAvailability gles_availability = 0;
CoglBool in_core;
switch (driver)
{
- case COGL_DRIVER_GLES1:
- gles_availability = COGL_EXT_IN_GLES;
- break;
- case COGL_DRIVER_GLES2:
- gles_availability = COGL_EXT_IN_GLES2;
-
- if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 0))
- gles_availability |= COGL_EXT_IN_GLES3;
- break;
case COGL_DRIVER_ANY:
g_assert_not_reached ();
case COGL_DRIVER_WEBGL:
@@ -187,7 +177,6 @@ error:
for each feature */
#define COGL_EXT_BEGIN(name, \
min_gl_major, min_gl_minor, \
- gles_availability, \
namespaces, extension_names) \
static const CoglFeatureFunction cogl_ext_ ## name ## _funcs[] = {
#define COGL_EXT_FUNCTION(ret, name, args) \
@@ -201,9 +190,8 @@ error:
#undef COGL_EXT_BEGIN
#define COGL_EXT_BEGIN(name, \
min_gl_major, min_gl_minor, \
- gles_availability, \
namespaces, extension_names) \
- { min_gl_major, min_gl_minor, gles_availability, namespaces, \
+ { min_gl_major, min_gl_minor, namespaces, \
extension_names, 0, 0, 0, \
cogl_ext_ ## name ## _funcs },
#undef COGL_EXT_FUNCTION