mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 960692 - Avoid crashing in CompositorD3D11::BeginFrame if the ID3D11RenderTargetView is null. r=Bas
This commit is contained in:
parent
491055f172
commit
01d3a37821
@ -685,8 +685,8 @@ CompositorD3D11::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
|
||||
UpdateRenderTarget();
|
||||
|
||||
// Failed to create a render target.
|
||||
if (!mDefaultRT ||
|
||||
// Failed to create a render target or the view.
|
||||
if (!mDefaultRT || !mDefaultRT->mRTView ||
|
||||
mSize.width == 0 || mSize.height == 0) {
|
||||
*aRenderBoundsOut = Rect();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user