Bug 960692 - Avoid crashing in CompositorD3D11::BeginFrame if the ID3D11RenderTargetView is null. r=Bas

This commit is contained in:
Jim Mathies 2014-01-22 14:12:11 -06:00
parent 491055f172
commit 01d3a37821

View File

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