Bug 1149864: Do not attempt to create any D3D11 device when safemode is turned on. r=jrmuizel

This commit is contained in:
Bas Schouten 2015-04-01 19:45:58 +02:00
parent 258f6c26ed
commit 66f9f7bf96

View File

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