From: Damien Lespiau Date: Tue, 30 Nov 2010 16:03:26 +0000 (+0000) Subject: cogl: Fix unused variable warning with GLES2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbbd91e581ca6d7408c1f6fa2f1b6d50d2c4db2b;p=profile%2Fivi%2Fclutter.git cogl: Fix unused variable warning with GLES2 This shader variable is only used with big GL. --- diff --git a/clutter/cogl/cogl/cogl-shader.c b/clutter/cogl/cogl/cogl-shader.c index 668b6ad..15f926d 100644 --- a/clutter/cogl/cogl/cogl-shader.c +++ b/clutter/cogl/cogl/cogl-shader.c @@ -164,7 +164,9 @@ cogl_shader_source (CoglHandle handle, void cogl_shader_compile (CoglHandle handle) { +#ifdef HAVE_COGL_GL CoglShader *shader = handle; +#endif if (!cogl_is_shader (handle)) return;