1
0
Fork 0

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 7ed9ded5d3
commit 268fa9c7ab

View file

@ -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);