Bug 1105088 - Disable D3D9 on Vista or later Windows versions. r=jrmuizel

This commit is contained in:
Nicolas Silva 2014-12-23 11:27:37 +01:00
parent f448b65305
commit e5368c7800

View File

@ -6750,7 +6750,10 @@ nsWindow::GetPreferredCompositorBackends(nsTArray<LayersBackend>& aHints)
if (!prefs.mPreferD3D9) {
aHints.AppendElement(LayersBackend::LAYERS_D3D11);
}
aHints.AppendElement(LayersBackend::LAYERS_D3D9);
if (prefs.mPreferD3D9 || !mozilla::IsVistaOrLater()) {
// We don't want D3D9 except on Windows XP
aHints.AppendElement(LayersBackend::LAYERS_D3D9);
}
}
aHints.AppendElement(LayersBackend::LAYERS_BASIC);
}