Commit 08a66a51 authored by kkinnunen's avatar kkinnunen Committed by Commit bot

command_buffer: Avoid glGetError after lost context

Do not call glGetError for debug info after context has been lost.

BUG=581634
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/1922703004
Cr-Commit-Position: refs/heads/master@{#390332}
parent bc00ec09
......@@ -4473,7 +4473,7 @@ error::Error GLES2DecoderImpl::DoCommandsImpl(unsigned int num_commands,
if (DebugImpl && doing_gpu_trace)
gpu_tracer_->End(kTraceDecoder);
if (DebugImpl && debug()) {
if (DebugImpl && debug() && !WasContextLost()) {
GLenum error;
while ((error = glGetError()) != GL_NO_ERROR) {
LOG(ERROR) << "[" << logger_.GetLogPrefix() << "] "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment