mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1107718 - Addendum: Properly address review comments. r=nical
This commit is contained in:
parent
cd5fcfeb14
commit
c528537e42
@ -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
|
||||
|
@ -389,6 +389,7 @@ gfxWindowsPlatform::UpdateRenderMode()
|
||||
mD3D11DeviceInitialized = false;
|
||||
mD3D11Device = nullptr;
|
||||
mD3D11ContentDevice = nullptr;
|
||||
mAdapter = nullptr;
|
||||
|
||||
imgLoader::Singleton()->ClearCache(true);
|
||||
imgLoader::Singleton()->ClearCache(false);
|
||||
|
Loading…
Reference in New Issue
Block a user