mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 604647: Never create swap chains while the device is lost. r=jrmuizel a=blocking-final
This commit is contained in:
parent
c635e3f490
commit
402680c191
@ -449,6 +449,15 @@ DeviceManagerD3D9::CreateSwapChain(HWND hWnd)
|
||||
{
|
||||
nsRefPtr<SwapChainD3D9> swapChain = new SwapChainD3D9(this);
|
||||
|
||||
// See bug 604647. This line means that if we create a window while the
|
||||
// device is lost LayerManager initialization will fail, this window
|
||||
// will be permanently unaccelerated. This should be a rare situation
|
||||
// though and the need for a low-risk fix for this bug outweighs the
|
||||
// downside.
|
||||
if (!VerifyReadyForRendering()) {
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
if (!swapChain->Init(hWnd)) {
|
||||
return nsnull;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user