Skip to content

Commit

Permalink
Revert "Merge pull request #54 from goodusername123/Win8.1-DComp"
Browse files Browse the repository at this point in the history
This reverts commit 27431a6, reversing
changes made to 5034082.
  • Loading branch information
K4sum1 committed Apr 17, 2024
1 parent 27431a6 commit 0b6c3e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gfx/config/gfxConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ void gfxConfigManager::Init() {
#ifdef XP_WIN
DeviceManagerDx::Get()->CheckHardwareStretchingSupport(mHwStretchingSupport);
mScaledResolution = HasScaledResolution();
mIsWin8Point1OrLater = IsWin8Point1OrLater();
mIsWin10OrLater = IsWin10OrLater();
mIsWin11OrLater = IsWin11OrLater();
mWrCompositorDCompRequired = true;
Expand Down Expand Up @@ -263,10 +262,11 @@ void gfxConfigManager::ConfigureWebRender() {
"FEATURE_FAILURE_DCOMP_PREF_DISABLED"_ns);
}

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

if (!mFeatureGPUProcess->IsEnabled()) {
Expand Down
1 change: 0 additions & 1 deletion gfx/config/gfxConfigManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class gfxConfigManager {
bool mIsNightly;
bool mIsEarlyBetaOrEarlier;
bool mSafeMode;
bool mIsWin8Point1OrLater;
bool mIsWin10OrLater;
bool mIsWin11OrLater;
};
Expand Down

0 comments on commit 0b6c3e2

Please sign in to comment.