From 268fa9c7abf142e0d542d3d213f2154de48cc138 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 18 Feb 2009 18:45:58 +0000 Subject: [PATCH] Initialize a variable to avoid warnings The gl_mode variable was not initialized, and the compiler complained when using the anal-retentive compiler flags. --- gl/cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl/cogl.c b/gl/cogl.c index 41bf185c0..27bf0c80d 100644 --- a/gl/cogl.c +++ b/gl/cogl.c @@ -1184,7 +1184,7 @@ cogl_set_fog (const CoglColor *fog_color, float z_far) { GLfloat fogColor[4]; - GLenum gl_mode; + GLenum gl_mode = GL_LINEAR; fogColor[0] = cogl_color_get_red_float (fog_color); fogColor[1] = cogl_color_get_green_float (fog_color);