aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuGLShaders2.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-31 14:24:48 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-31 14:24:48 +0000
commit5f6ee1a8071346be874042a15dbf9352d0e8c520 (patch)
treef690892dd0f094743438aec35f318fcba9fe1e09 /gpu/src/GrGpuGLShaders2.cpp
parentbefebb8a8437ce69e3a416b417cb27b66273128d (diff)
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
Diffstat (limited to 'gpu/src/GrGpuGLShaders2.cpp')
-rw-r--r--gpu/src/GrGpuGLShaders2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp
index 88c2b5c2cd..82d7d272db 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) {