зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1042946 - Discard back buffer on error in ClientTiledLayerBuffer::ValidateTile() r=nical
This commit is contained in:
Родитель
602f051355
Коммит
f73d5b099c
|
@ -914,9 +914,10 @@ ClientTiledLayerBuffer::ValidateTile(TileClient aTile,
|
|||
mManager->GetTexturePool(gfxPlatform::GetPlatform()->Optimal2DFormatForContent(GetContentType())),
|
||||
&createdTextureClient, !usingSinglePaintBuffer);
|
||||
|
||||
if (!backBuffer->Lock(OpenMode::OPEN_READ_WRITE)) {
|
||||
if (!backBuffer || !backBuffer->Lock(OpenMode::OPEN_READ_WRITE)) {
|
||||
NS_WARNING("Failed to lock tile TextureClient for updating.");
|
||||
aTile.DiscardFrontBuffer();
|
||||
aTile.DiscardBackBuffer();
|
||||
return aTile;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче