Bug 759643: Only check for D3D 10.0 support when selecting a DXGI 1.1 adapter. r=roc

This commit is contained in:
Bas Schouten 2012-05-30 06:55:15 +02:00
Родитель d2bb6613fd
Коммит 8c640d8015
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -495,10 +495,12 @@ gfxWindowsPlatform::VerifyD2DDevice(bool aAttemptForce)
hr = factory1->EnumAdapters1(0, getter_AddRefs(adapter1));
if (SUCCEEDED(hr) && adapter1) {
hr = adapter1->CheckInterfaceSupport(__uuidof(ID3D10Device1),
hr = adapter1->CheckInterfaceSupport(__uuidof(ID3D10Device),
nsnull);
if (FAILED(hr)) {
adapter1 = nsnull;
// We should return and not accelerate if we don't have
// D3D 10.0 support.
return;
}
}
}