From b50bdd791986d85a29c40c763b329b1347060769 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Thu, 12 Aug 2010 10:40:39 +0100 Subject: [PATCH] cogl-shader: correctly #ifdef guard an if else block There are quite a few if {} else {} blocks for dealing with arbfp else glsl and the first block is guarded with #ifdef HAVE_COGL_GL. In this case though the #endif was before the else so it wouldn't compile for gles. --- clutter/cogl/cogl/cogl-shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-shader.c b/clutter/cogl/cogl/cogl-shader.c index 46e2b93c9..a08bff57e 100644 --- a/clutter/cogl/cogl/cogl-shader.c +++ b/clutter/cogl/cogl/cogl-shader.c @@ -129,8 +129,8 @@ cogl_shader_source (CoglHandle handle, g_free (shader->arbfp_source); shader->arbfp_source = NULL; } -#endif else +#endif { if (shader->gl_handle) GE (glDeleteShader (shader->gl_handle));