Index: gpu/command_buffer/service/program_manager.cc |
=================================================================== |
--- gpu/command_buffer/service/program_manager.cc (revision 174988) |
+++ gpu/command_buffer/service/program_manager.cc (working copy) |
@@ -472,7 +472,7 @@ |
info->service_id(), max_len, &len, temp.get()); |
DCHECK(max_len == 0 || len < max_len); |
DCHECK(len == 0 || temp[len] == '\0'); |
- info->UpdateTranslatedSource(temp.get()); |
+ info->UpdateTranslatedSource(max_len ? temp.get() : NULL); |
} |
GLint status = GL_FALSE; |