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:
parent
7ed9ded5d3
commit
268fa9c7ab
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user