зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 4d4abe4bee7f (bug 1083071
) for bustage.
This commit is contained in:
Родитель
00c7a6d832
Коммит
07a4bc9d5e
|
@ -1572,16 +1572,6 @@ gfxWindowsPlatform::InitD3D11Devices()
|
|||
{
|
||||
mD3D11DeviceInitialized = true;
|
||||
|
||||
nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
|
||||
if (gfxInfo) {
|
||||
int32_t status;
|
||||
if (NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS, &status))) {
|
||||
if (status != nsIGfxInfo::FEATURE_STATUS_OK) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nsModuleHandle d3d11Module(LoadLibrarySystem32(L"d3d11.dll"));
|
||||
decltype(D3D11CreateDevice)* d3d11CreateDevice = (decltype(D3D11CreateDevice)*)
|
||||
GetProcAddress(d3d11Module, "D3D11CreateDevice");
|
||||
|
|
Загрузка…
Ссылка в новой задаче