cogl: Fix unused variable warning with GLES2

This shader variable is only used with big GL.
This commit is contained in:
Damien Lespiau 2010-11-30 16:03:26 +00:00
parent 9ad55edf24
commit bbbd91e581

View File

@ -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;