summaryrefslogtreecommitdiff
path: root/gfx/src/DriverCrashGuard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/src/DriverCrashGuard.cpp')
-rw-r--r--gfx/src/DriverCrashGuard.cpp6
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