[clutter] build: check COGL_HAS_GLES2 to check for gles2 support



commit 8e3805136ca633a6bebc701a2cf49c8f07e1268a
Author: Robert Bragg <robert linux intel com>
Date:   Mon Jul 4 15:09:42 2011 +0100

    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>

 tests/conform/test-cogl-materials.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/conform/test-cogl-materials.c b/tests/conform/test-cogl-materials.c
index d5a21ab..c493bf0 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]