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 <ebassi@linux.intel.com>
This commit is contained in:
parent
dbf2ccfd59
commit
8e3805136c
@ -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
|
/* FIXME: Cogl doesn't provide a way to query the maximum number of
|
||||||
texture layers so for now we'll just ask GL directly. */
|
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;
|
GLint n_image_units, n_attribs;
|
||||||
/* GLES 2 doesn't have GL_MAX_TEXTURE_UNITS and it uses
|
/* GLES 2 doesn't have GL_MAX_TEXTURE_UNITS and it uses
|
||||||
|
Loading…
Reference in New Issue
Block a user