From dcad27120ed8387ade8791bee3dbb4bebe43fa97 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 25 Jul 2011 11:07:18 +0100 Subject: [PATCH] conform/cogl-materials: Fix a compiler warning The function checking for the presence and use of the GLES2 support in Cogl should be protected by #ifdef guards, to avoid a compiler warning. --- tests/conform/test-cogl-materials.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conform/test-cogl-materials.c b/tests/conform/test-cogl-materials.c index 5c74df59d..0abf5641e 100644 --- a/tests/conform/test-cogl-materials.c +++ b/tests/conform/test-cogl-materials.c @@ -128,6 +128,7 @@ test_invalid_texture_layers (TestState *state, int x, int y) test_material_with_primitives (state, x, y, 0xffffffff); } +#ifdef COGL_HAS_GLES2 static gboolean using_gles2_driver (void) { @@ -136,6 +137,7 @@ using_gles2_driver (void) return g_str_has_prefix ((const char *) gl_functions.glGetString (GL_VERSION), "OpenGL ES 2"); } +#endif static void test_using_all_layers (TestState *state, int x, int y)