diff options
author | Moonchild <moonchild@palemoon.org> | 2021-11-17 23:02:46 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-04 22:15:34 +0200 |
commit | ef5083db5f52156bebeffbe73317efcf35350228 (patch) | |
tree | d2a456633aa98a074593ae589cd65c6efad79054 /gfx/src | |
parent | cff9ef7fb81b46264caea00ac3c7a99677d8b856 (diff) | |
download | uxp-ef5083db5f52156bebeffbe73317efcf35350228.tar.gz |
Issue #1841 - Part 2: Remove D3D9 layer compositor references and
layer fallback code.
Diffstat (limited to 'gfx/src')
-rw-r--r-- | gfx/src/DriverCrashGuard.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gfx/src/DriverCrashGuard.cpp b/gfx/src/DriverCrashGuard.cpp index 42b7416344..3b69d387c5 100644 --- a/gfx/src/DriverCrashGuard.cpp +++ b/gfx/src/DriverCrashGuard.cpp @@ -5,6 +5,7 @@ #include "DriverCrashGuard.h"
#include "gfxEnv.h"
#include "gfxPrefs.h"
+#include "gfxConfig.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h"
#include "nsServiceManagerUtils.h"
@@ -432,10 +433,7 @@ D3D11LayersCrashGuard::UpdateEnvironment() (!gfxPrefs::Direct2DDisabled() && FeatureEnabled(nsIGfxInfo::FEATURE_DIRECT2D));
changed |= CheckAndUpdateBoolPref("feature-d2d", d2dEnabled);
- bool d3d11Enabled = !gfxPrefs::LayersPreferD3D9();
- if (!FeatureEnabled(nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS)) {
- d3d11Enabled = false;
- }
+ bool d3d11Enabled = gfxConfig::IsEnabled(Feature::D3D11_COMPOSITING);
changed |= CheckAndUpdateBoolPref("feature-d3d11", d3d11Enabled);
#endif
|