mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
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:
parent
85e7e607e8
commit
2ca9b289bc
@ -498,7 +498,7 @@ bool ClientWebGLContext::UpdateWebRenderCanvasData(
|
||||
nsDisplayListBuilder* aBuilder, WebRenderCanvasData* aCanvasData) {
|
||||
CanvasRenderer* renderer = aCanvasData->GetCanvasRenderer();
|
||||
|
||||
if (!mResetLayer && renderer) {
|
||||
if (!IsContextLost() && !mResetLayer && renderer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user