Bug 1107718 - Addendum: Properly address review comments. r=nical

This commit is contained in:
Bas Schouten 2015-01-08 00:12:29 +00:00
parent cd5fcfeb14
commit c528537e42
2 changed files with 2 additions and 7 deletions

View File

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

View File

@ -389,6 +389,7 @@ gfxWindowsPlatform::UpdateRenderMode()
mD3D11DeviceInitialized = false;
mD3D11Device = nullptr;
mD3D11ContentDevice = nullptr;
mAdapter = nullptr;
imgLoader::Singleton()->ClearCache(true);
imgLoader::Singleton()->ClearCache(false);