From 8e3805136ca633a6bebc701a2cf49c8f07e1268a Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 4 Jul 2011 15:09:42 +0100 Subject: [PATCH] build: check COGL_HAS_GLES2 to check for gles2 support We were checking HAVE_COGL_GLES2 but this is not publicly defined by Cogl so since splitting Cogl from Clutter test-cogl-materials.c would not have built against gles2 since it would end up enabling the GL specific code path which would reference an undefined symbol. Signed-off-by: Emmanuele Bassi --- tests/conform/test-cogl-materials.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conform/test-cogl-materials.c b/tests/conform/test-cogl-materials.c index d5a21ab2f..c493bf026 100644 --- a/tests/conform/test-cogl-materials.c +++ b/tests/conform/test-cogl-materials.c @@ -154,7 +154,7 @@ test_using_all_layers (TestState *state, int x, int y) /* FIXME: Cogl doesn't provide a way to query the maximum number of texture layers so for now we'll just ask GL directly. */ -#ifdef HAVE_COGL_GLES2 +#ifdef COGL_HAS_GLES2 { GLint n_image_units, n_attribs; /* GLES 2 doesn't have GL_MAX_TEXTURE_UNITS and it uses