summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index f13fc47..a6d3d8f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -5332,7 +5332,8 @@ error::Error GLES2DecoderImpl::HandleSwapBuffers(
glFlush();
}
} else {
- context_->SwapBuffers();
+ if (!context_->SwapBuffers())
+ return error::kLostContext;
}
// TODO(kbr): when the back buffer is multisampled, then at least on Mac