mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 805406: Do not validate ThebesLayers when the D2D device is invalid. r=jrmuizel
This commit is contained in:
parent
5df0b2cbab
commit
b496b18de3
@ -151,6 +151,12 @@ ThebesLayerD3D10::Validate(ReadbackProcessor *aReadback)
|
||||
return;
|
||||
}
|
||||
|
||||
if (FAILED(gfxWindowsPlatform::GetPlatform()->GetD3D10Device()->GetDeviceRemovedReason())) {
|
||||
// Device removed, this will be discovered on the next rendering pass.
|
||||
// Do no validate.
|
||||
return;
|
||||
}
|
||||
|
||||
nsIntRect newTextureRect = mVisibleRegion.GetBounds();
|
||||
|
||||
SurfaceMode mode = GetSurfaceMode();
|
||||
|
Loading…
Reference in New Issue
Block a user