| 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 6212d7fdbf357d1b22988ba6f48f4a8e4a55700b..3922d53ae122bb98012f80d93ae1fe7a4b289a59 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -3353,7 +3353,7 @@ bool GLES2DecoderImpl::Initialize(
|
| DoBindFramebuffer(GL_FRAMEBUFFER, 0);
|
| DoBindRenderbuffer(GL_RENDERBUFFER, 0);
|
|
|
| - bool call_gl_clear = !surfaceless_;
|
| + bool call_gl_clear = !surfaceless_ && !offscreen;
|
| #if defined(OS_ANDROID)
|
| // Temporary workaround for Android WebView because this clear ignores the
|
| // clip and corrupts that external UI of the App. Not calling glClear is ok
|
|
|