mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Merge pull request #19430 from basharast/master
[Windows] OS Version minor changes
This commit is contained in:
10 files changed
+84
-53
No files matched your search
+3
-3
@@ -423,7 +423,7 @@ static int DefaultGPUBackend() {
|
||||
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
// If no Vulkan, use Direct3D 11 on Windows 8+ (most importantly 10.)
|
||||
if (DoesVersionMatchWindows(6, 2, 0, 0, true)) {
|
||||
if (IsWin8OrHigher()) {
|
||||
return (int)GPUBackend::DIRECT3D11;
|
||||
}
|
||||
#elif PPSSPP_PLATFORM(ANDROID)
|
||||
@@ -494,7 +494,7 @@ int Config::NextValidBackend() {
|
||||
}
|
||||
#endif
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
if (!failed.count(GPUBackend::DIRECT3D11) && DoesVersionMatchWindows(6, 1, 0, 0, true)) {
|
||||
if (!failed.count(GPUBackend::DIRECT3D11) && IsWin7OrHigher()) {
|
||||
return (int)GPUBackend::DIRECT3D11;
|
||||
}
|
||||
#endif
|
||||
@@ -541,7 +541,7 @@ bool Config::IsBackendEnabled(GPUBackend backend) {
|
||||
if (backend != GPUBackend::OPENGL)
|
||||
return false;
|
||||
#elif PPSSPP_PLATFORM(WINDOWS)
|
||||
if (backend == GPUBackend::DIRECT3D11 && !DoesVersionMatchWindows(6, 0, 0, 0, true))
|
||||
if (backend == GPUBackend::DIRECT3D11 && !IsVistaOrHigher())
|
||||
return false;
|
||||
#else
|
||||
if (backend == GPUBackend::DIRECT3D11 || backend == GPUBackend::DIRECT3D9)
|
||||
|
||||
Reference in new issue
Block a user