Bug 1795050 - Add context lost check to ClientWebGLContext::UpdateWebRenderCanvasData() r=gfx-reviewers,lsalzman

There was a case that context was lost with mResetLayer=false.

Differential Revision: https://phabricator.services.mozilla.com/D160874
This commit is contained in:
sotaro 2022-11-01 08:13:54 +00:00
parent 85e7e607e8
commit 2ca9b289bc

View File

@ -498,7 +498,7 @@ bool ClientWebGLContext::UpdateWebRenderCanvasData(
nsDisplayListBuilder* aBuilder, WebRenderCanvasData* aCanvasData) {
CanvasRenderer* renderer = aCanvasData->GetCanvasRenderer();
if (!mResetLayer && renderer) {
if (!IsContextLost() && !mResetLayer && renderer) {
return true;
}