diff --git a/gfx/layers/d3d11/CompositorD3D11.cpp b/gfx/layers/d3d11/CompositorD3D11.cpp index fec22ce5416..f83512b81ad 100644 --- a/gfx/layers/d3d11/CompositorD3D11.cpp +++ b/gfx/layers/d3d11/CompositorD3D11.cpp @@ -1211,20 +1211,14 @@ CompositorD3D11::VerifyBufferSize() hr = mSwapChain->ResizeBuffers(2, mSize.width, mSize.height, DXGI_FORMAT_B8G8R8A8_UNORM, 0); - HandleError(hr); mDisableSequenceForNextFrame = true; } else { hr = mSwapChain->ResizeBuffers(1, mSize.width, mSize.height, DXGI_FORMAT_B8G8R8A8_UNORM, 0); - HandleError(hr); } - if (FAILED(hr)) { - return false; - } - - return true; + return Succeeded(hr); } void diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index d8ad5fe2e8b..ae74bb29c12 100644 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -389,6 +389,7 @@ gfxWindowsPlatform::UpdateRenderMode() mD3D11DeviceInitialized = false; mD3D11Device = nullptr; mD3D11ContentDevice = nullptr; + mAdapter = nullptr; imgLoader::Singleton()->ClearCache(true); imgLoader::Singleton()->ClearCache(false);