From a0247f294ddcc02ba589f7ea9afe6d1f4f7b0c1a 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. --- cogl/cogl-shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-shader.c b/cogl/cogl-shader.c index 46e2b93c9..a08bff57e 100644 --- a/cogl/cogl-shader.c +++ b/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));