Bug 805406: Do not validate ThebesLayers when the D2D device is invalid. r=jrmuizel

This commit is contained in:
Bas Schouten 2014-02-08 19:37:38 +00:00
parent 5df0b2cbab
commit b496b18de3

View File

@ -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();