From 5f6ee1a8071346be874042a15dbf9352d0e8c520 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 31 Jan 2011 14:24:48 +0000 Subject: [PATCH] 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 --- gpu/src/GrGpuGLShaders2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp index 88c2b5c2c..82d7d272d 100644 --- a/gpu/src/GrGpuGLShaders2.cpp +++ b/gpu/src/GrGpuGLShaders2.cpp @@ -898,10 +898,10 @@ void GrGpuGLShaders2::GenProgram(const ProgramDesc& desc, 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 @@ GLuint GrGpuGLShaders2::CompileShader(GLenum type, 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) {