From 5cc15429cd0bbbcc170320c5def63fb65d580fe0 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 22 Jan 2025 18:26:29 +0100 Subject: [PATCH] Force Native Depth Interpolation on UWP/Xbox. UWP build fix --- core/cfg/option.cpp | 4 ++++ core/network/dcnet.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/cfg/option.cpp b/core/cfg/option.cpp index 63b54716a..bc87f33fb 100644 --- a/core/cfg/option.cpp +++ b/core/cfg/option.cpp @@ -105,7 +105,11 @@ Option TextureFiltering("rend.TextureFiltering", 0); // Default Option ThreadedRendering("rend.ThreadedRendering", true); Option DupeFrames("rend.DupeFrames", false); Option PerPixelLayers("rend.PerPixelLayers", 32); +#ifdef TARGET_UWP +Option NativeDepthInterpolation("rend.NativeDepthInterpolation", true); +#else Option NativeDepthInterpolation("rend.NativeDepthInterpolation", false); +#endif Option EmulateFramebuffer("rend.EmulateFramebuffer", false); Option FixUpscaleBleedingEdge("rend.FixUpscaleBleedingEdge", true); Option CustomGpuDriver("rend.CustomGpuDriver", false); diff --git a/core/network/dcnet.cpp b/core/network/dcnet.cpp index b1c436e9c..37bfb598f 100644 --- a/core/network/dcnet.cpp +++ b/core/network/dcnet.cpp @@ -16,12 +16,12 @@ You should have received a copy of the GNU General Public License along with Flycast. If not, see . */ +#include #include "types.h" #include "netservice.h" #include "util/tsqueue.h" #include "oslib/oslib.h" #include "emulator.h" -#include #include #include #include