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 0886768193444d6e61c7467c5ef30e28aeaf85a6..96182ea3726d86efc6eac3ceed54e60572101c21 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -4492,6 +4492,10 @@ void GLES2DecoderImpl::DoDisableVertexAttribArray(GLuint index) { |
void GLES2DecoderImpl::DoDiscardFramebufferEXT(GLenum target, |
GLsizei numAttachments, |
const GLenum* attachments) { |
+ if (workarounds().disable_fbo_invalidations) { |
vmiura
2015/03/25 21:43:11
nit: no need for {} brackets.
David Yen
2015/03/25 21:45:27
Done.
|
+ return; |
+ } |
+ |
Framebuffer* framebuffer = |
GetFramebufferInfoForTarget(GL_FRAMEBUFFER); |