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 0547749384a06056ac1235ccac5ad077779f800d..3b441a2c76688e8432d3569c147e9dda7a60b69e 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -2737,6 +2737,9 @@ bool GLES2DecoderImpl::MakeCurrent() { |
framebuffer_manager()->IncFramebufferStateChangeCount(); |
} |
+ if (workarounds().flush_on_context_switch) |
+ glFlush(); |
+ |
return true; |
} |