Chromium Code Reviews| Index: bench/GLBench.cpp |
| diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp |
| index 531bf88b55e5b2782eda5f767374689c5312808a..9a03004906bb35a80e7f2fb85aa3db5e11664bf4 100644 |
| --- a/bench/GLBench.cpp |
| +++ b/bench/GLBench.cpp |
| @@ -70,7 +70,7 @@ GrGLuint GLBench::CompileShader(const GrGLInterface* gl, const char* shaderSrc, |
| GR_GL_CALL(gl, CompileShader(shader)); |
| // Check for compile time errors |
| - GrGLint success; |
| + GrGLint success = 0; |
|
bsalomon
2015/09/08 13:27:16
There is a macro GR_GL_ZERO_INIT. It is just defin
|
| GrGLchar infoLog[512]; |
| GR_GL_CALL(gl, GetShaderiv(shader, GR_GL_COMPILE_STATUS, &success)); |
| if (!success) { |
| @@ -93,7 +93,7 @@ GrGLuint GLBench::CreateProgram(const GrGLInterface* gl, const char* vshader, co |
| GR_GL_CALL(gl, LinkProgram(shaderProgram)); |
| // Check for linking errors |
| - GrGLint success; |
| + GrGLint success = 0; |
| GrGLchar infoLog[512]; |
| GR_GL_CALL(gl, GetProgramiv(shaderProgram, GR_GL_LINK_STATUS, &success)); |
| if (!success) { |