initialize int var-args to placate chrome's runtime check
git-svn-id: http://skia.googlecode.com/svn/trunk@746 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp
index 88c2b5c..82d7d27 100644
--- a/gpu/src/GrGpuGLShaders2.cpp
+++ b/gpu/src/GrGpuGLShaders2.cpp
@@ -898,10 +898,10 @@
GR_GL(LinkProgram(progID));
- GLint linked;
+ GLint linked = GR_GL_INIT_ZERO;
GR_GL(GetProgramiv(progID, GL_LINK_STATUS, &linked));
if (!linked) {
- GLint infoLen;
+ GLint infoLen = GR_GL_INIT_ZERO;
GR_GL(GetProgramiv(progID, GL_INFO_LOG_LENGTH, &infoLen));
GrAutoMalloc log(sizeof(char)*(infoLen+1)); // outside if for debugger
if (infoLen > 0) {
@@ -1054,13 +1054,13 @@
return 0;
}
- GLint compiled;
+ GLint compiled = GR_GL_INIT_ZERO;
GR_GL(ShaderSource(shader, stringCnt, strings, stringLengths));
GR_GL(CompileShader(shader));
GR_GL(GetShaderiv(shader, GL_COMPILE_STATUS, &compiled));
if (!compiled) {
- GLint infoLen;
+ GLint infoLen = GR_GL_INIT_ZERO;
GR_GL(GetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen));
GrAutoMalloc log(sizeof(char)*(infoLen+1)); // outside if for debugger
if (infoLen > 0) {