mirror of
https://github.com/brl/mutter.git
synced 2025-01-27 11:59:12 +00:00
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.
This commit is contained in:
parent
772ce1d561
commit
dcad27120e
@ -128,6 +128,7 @@ test_invalid_texture_layers (TestState *state, int x, int y)
|
|||||||
test_material_with_primitives (state, x, y, 0xffffffff);
|
test_material_with_primitives (state, x, y, 0xffffffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef COGL_HAS_GLES2
|
||||||
static gboolean
|
static gboolean
|
||||||
using_gles2_driver (void)
|
using_gles2_driver (void)
|
||||||
{
|
{
|
||||||
@ -136,6 +137,7 @@ using_gles2_driver (void)
|
|||||||
return g_str_has_prefix ((const char *) gl_functions.glGetString (GL_VERSION),
|
return g_str_has_prefix ((const char *) gl_functions.glGetString (GL_VERSION),
|
||||||
"OpenGL ES 2");
|
"OpenGL ES 2");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_using_all_layers (TestState *state, int x, int y)
|
test_using_all_layers (TestState *state, int x, int y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user