Bug 596494 - Part 3: Update rendermode upon deviceremoval. r=jrmuizel

This commit is contained in:
Bas Schouten 2010-09-15 22:16:11 +00:00
parent 219f069673
commit 266542dc32

@ -752,6 +752,9 @@ DDRAW_FAILED:
result = DispatchWindowEvent(&event, eventStatus);
if (layerManagerD3D9->DeviceWasRemoved()) {
mLayerManager = nsnull;
// When our device was removed, we should have gfxWindowsPlatform
// check if its render mode is up to date!
gfxWindowsPlatform::GetPlatform()->UpdateRenderMode();
Invalidate(PR_FALSE);
}
}