Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: bench/GLBench.cpp

Issue 1318143004: skia: Initialize value passed to GetShaderiv in GLBench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove code that leaked in Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GLBench.cpp
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp
index 531bf88b55e5b2782eda5f767374689c5312808a..a2f7a06447b1bf960fae53ce969c0498e2702c41 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 = GR_GL_INIT_ZERO;
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 = GR_GL_INIT_ZERO;
GrGLchar infoLog[512];
GR_GL_CALL(gl, GetProgramiv(shaderProgram, GR_GL_LINK_STATUS, &success));
if (!success) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698