Initialize a variable to avoid warnings

The gl_mode variable was not initialized, and the compiler complained
when using the anal-retentive compiler flags.
This commit is contained in:
Emmanuele Bassi 2009-02-18 18:45:58 +00:00
parent a86b9834d3
commit 5bdcfd288c

View File

@ -1184,7 +1184,7 @@ cogl_set_fog (const CoglColor *fog_color,
float z_far) float z_far)
{ {
GLfloat fogColor[4]; GLfloat fogColor[4];
GLenum gl_mode; GLenum gl_mode = GL_LINEAR;
fogColor[0] = cogl_color_get_red_float (fog_color); fogColor[0] = cogl_color_get_red_float (fog_color);
fogColor[1] = cogl_color_get_green_float (fog_color); fogColor[1] = cogl_color_get_green_float (fog_color);