Skip to content

Commit 27431a6

Browse files
authored
Merge pull request #54 from goodusername123/Win8.1-DComp
Attempt to allow DComp in Windows 8.1
2 parents 5034082 + 8afa232 commit 27431a6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

gfx/config/gfxConfigManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void gfxConfigManager::Init() {
6060
#ifdef XP_WIN
6161
DeviceManagerDx::Get()->CheckHardwareStretchingSupport(mHwStretchingSupport);
6262
mScaledResolution = HasScaledResolution();
63+
mIsWin8Point1OrLater = IsWin8Point1OrLater();
6364
mIsWin10OrLater = IsWin10OrLater();
6465
mIsWin11OrLater = IsWin11OrLater();
6566
mWrCompositorDCompRequired = true;
@@ -262,11 +263,10 @@ void gfxConfigManager::ConfigureWebRender() {
262263
"FEATURE_FAILURE_DCOMP_PREF_DISABLED"_ns);
263264
}
264265

265-
if (!mIsWin10OrLater) {
266-
// XXX relax win version to windows 8.
266+
if (!mIsWin8Point1OrLater) {
267267
mFeatureWrDComp->Disable(FeatureStatus::Unavailable,
268-
"Requires Windows 10 or later",
269-
"FEATURE_FAILURE_DCOMP_NOT_WIN10"_ns);
268+
"Requires Windows 8.1 or later",
269+
"FEATURE_FAILURE_DCOMP_NOT_WIN8.1"_ns);
270270
}
271271

272272
if (!mFeatureGPUProcess->IsEnabled()) {

gfx/config/gfxConfigManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class gfxConfigManager {
109109
bool mIsNightly;
110110
bool mIsEarlyBetaOrEarlier;
111111
bool mSafeMode;
112+
bool mIsWin8Point1OrLater;
112113
bool mIsWin10OrLater;
113114
bool mIsWin11OrLater;
114115
};

0 commit comments

Comments
 (0)