Index: gpu/command_buffer/client/gles2_demo_cc.cc |
=================================================================== |
--- gpu/command_buffer/client/gles2_demo_cc.cc (revision 67161) |
+++ gpu/command_buffer/client/gles2_demo_cc.cc (working copy) |
@@ -47,7 +47,7 @@ |
// Compile the shader |
glCompileShader(shader); |
// Check the compile status |
- GLint value; |
+ GLint value = 0; |
glGetShaderiv(shader, GL_COMPILE_STATUS, &value); |
if (value == 0) { |
char buffer[1024]; |
@@ -100,7 +100,7 @@ |
// Link the program |
glLinkProgram(programObject); |
// Check the link status |
- GLint linked; |
+ GLint linked = 0; |
glGetProgramiv(programObject, GL_LINK_STATUS, &linked); |
if (linked == 0) { |
char buffer[1024]; |