mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237770: Disable D3D9 on XP with E10S. r=jrmuizel
This commit is contained in:
parent
76c454533d
commit
4e4e2e2c52
@ -45,6 +45,10 @@
|
||||
#include "gfxAndroidPlatform.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
#endif
|
||||
|
||||
#include "nsGkAtoms.h"
|
||||
#include "gfxPlatformFontList.h"
|
||||
#include "gfxContext.h"
|
||||
@ -1944,9 +1948,13 @@ InitLayersAccelerationPrefs()
|
||||
} else if (gfxInfo) {
|
||||
if (NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_DIRECT3D_9_LAYERS, &status))) {
|
||||
if (status == nsIGfxInfo::FEATURE_STATUS_OK) {
|
||||
if (sPrefBrowserTabsRemoteAutostart && !IsVistaOrLater()) {
|
||||
gfxWarning() << "Disallowing D3D9 on Windows XP with E10S - see bug 1237770";
|
||||
} else {
|
||||
sLayersSupportsD3D9 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS, &status))) {
|
||||
if (status == nsIGfxInfo::FEATURE_STATUS_OK) {
|
||||
sLayersSupportsD3D11 = true;
|
||||
|
Loading…
Reference in New Issue
Block a user