Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
index 17f88c64f8af3f1bc6744b5db8eb5ad5a3373a3a..482ab1ab187d62302f19c28a9e57b13b43fa53a3 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -8032,6 +8032,8 @@ void GLES2DecoderImpl::DoLinkProgram(GLuint program_id) { |
Program::kCountAll : Program::kCountOnlyStaticallyUsed, |
shader_cache_callback_)) { |
if (program == state_.current_program.get()) { |
+ if (workarounds().use_current_program_after_successful_link) |
+ glUseProgram(program->service_id()); |
if (workarounds().clear_uniforms_before_first_program_use) |
program_manager()->ClearUniforms(program); |
} |