| 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 8c358f95e1eed25a90cb05c8072ce55b92982b16..aac93ef3cc0163036d1d8036258538c5330d6dc3 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -4583,7 +4583,10 @@ void GLES2DecoderImpl::CopyRealGLErrorsToWrapper() {
|
| void GLES2DecoderImpl::ClearRealGLErrors() {
|
| GLenum error;
|
| while ((error = glGetError()) != GL_NO_ERROR) {
|
| - NOTREACHED() << "GL error " << error << " was unhandled.";
|
| + if (error != GL_OUT_OF_MEMORY) {
|
| + // GL_OUT_OF_MEMORY can legally happen on lost device.
|
| + NOTREACHED() << "GL error " << error << " was unhandled.";
|
| + }
|
| }
|
| }
|
|
|
|
|