summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-27 03:02:07 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-27 03:02:07 +0000
commit82f88c5fbe2bfed02de4de0fb1a2ea98942c4e0e (patch)
tree3484cf9397278aaa7315f62de482a12861a23c19 /gpu
parent7e4c19e93067b120ea12436b55facdd3a233986b (diff)
downloadchromium_src-82f88c5fbe2bfed02de4de0fb1a2ea98942c4e0e.zip
chromium_src-82f88c5fbe2bfed02de4de0fb1a2ea98942c4e0e.tar.gz
chromium_src-82f88c5fbe2bfed02de4de0fb1a2ea98942c4e0e.tar.bz2
Fix for GL break on Linux build.
TBR=apatrick@google.com TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/client/gles2_demo_cc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/gles2_demo_cc.cc b/gpu/command_buffer/client/gles2_demo_cc.cc
index 8876e6c..ea20b38 100644
--- a/gpu/command_buffer/client/gles2_demo_cc.cc
+++ b/gpu/command_buffer/client/gles2_demo_cc.cc
@@ -47,7 +47,7 @@ GLuint LoadShader(GLenum type, const char* shaderSrc) {
glGetShaderiv(shader, GL_COMPILE_STATUS, &value);
if (value == 0) {
char buffer[1024];
- GLsizei length;
+ GLsizei length = 0;
glGetShaderInfoLog(shader, sizeof(buffer), &length, buffer);
std::string log(buffer, length);
DLOG(ERROR) << "Error compiling shader:" << log;