mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1149864: Do not attempt to create any D3D11 device when safemode is turned on. r=jrmuizel
This commit is contained in:
parent
258f6c26ed
commit
66f9f7bf96
@ -1872,7 +1872,17 @@ gfxWindowsPlatform::InitD3D11Devices()
|
||||
|
||||
mD3D11DeviceInitialized = true;
|
||||
|
||||
MOZ_ASSERT(!mD3D11Device);
|
||||
MOZ_ASSERT(!mD3D11Device);
|
||||
|
||||
bool safeMode = false;
|
||||
nsCOMPtr<nsIXULRuntime> xr = do_GetService("@mozilla.org/xre/runtime;1");
|
||||
if (xr) {
|
||||
xr->GetInSafeMode(&safeMode);
|
||||
}
|
||||
|
||||
if (safeMode) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool useWARP = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user