mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1189715 - verify that reference draw target is created after device reset and log failure in gfxWindowsPlatform::UpdateRenderMode. r=milan, a=lizzard
This commit is contained in:
parent
bf2b432234
commit
5f3098cd72
@ -528,6 +528,16 @@ gfxWindowsPlatform::UpdateRenderMode()
|
||||
if (didReset) {
|
||||
mScreenReferenceDrawTarget =
|
||||
CreateOffscreenContentDrawTarget(IntSize(1, 1), SurfaceFormat::B8G8R8A8);
|
||||
if (!mScreenReferenceDrawTarget) {
|
||||
gfxCriticalNote << "Failed to update reference draw target after device reset"
|
||||
<< ", D3D11 device:" << hexa(Factory::GetDirect3D11Device())
|
||||
<< ", D3D11 status:" << FeatureStatusToString(GetD3D11Status())
|
||||
<< ", D2D1 device:" << hexa(Factory::GetD2D1Device())
|
||||
<< ", D2D1 status:" << FeatureStatusToString(GetD2D1Status())
|
||||
<< ", content:" << int(GetDefaultContentBackend())
|
||||
<< ", compositor:" << int(GetCompositorBackend());
|
||||
MOZ_CRASH("GFX: Failed to update reference draw target after device reset");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user