summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 5d373fc..4d13583 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -4324,7 +4324,7 @@ void GLES2DecoderImpl::DoGetShaderiv(
}
switch (pname) {
case GL_SHADER_SOURCE_LENGTH:
- *params = info->source().size();
+ *params = info->source().size() + 1;
return;
case GL_COMPILE_STATUS:
*params = info->IsValid();