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.
This commit is contained in:
Robert Bragg 2010-08-12 10:40:39 +01:00
parent 94692370d2
commit b50bdd7919

View File

@ -129,8 +129,8 @@ cogl_shader_source (CoglHandle handle,
g_free (shader->arbfp_source); g_free (shader->arbfp_source);
shader->arbfp_source = NULL; shader->arbfp_source = NULL;
} }
#endif
else else
#endif
{ {
if (shader->gl_handle) if (shader->gl_handle)
GE (glDeleteShader (shader->gl_handle)); GE (glDeleteShader (shader->gl_handle));