Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
=================================================================== |
--- gpu/command_buffer/service/gles2_cmd_decoder.cc (revision 71466) |
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy) |
@@ -3607,16 +3607,17 @@ |
if (!info) { |
return; |
} |
+ |
+ info->ClearLinkStatus(); |
if (!info->CanLink()) { |
return; |
} |
+ |
glLinkProgram(info->service_id()); |
GLint success = 0; |
glGetProgramiv(info->service_id(), GL_LINK_STATUS, &success); |
if (success) { |
info->Update(); |
- } else { |
- info->Reset(); |
} |
}; |