From 52389f48a621f32a283ff204f15a22e33dc3ccf2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 5 Oct 2024 13:06:29 +1000 Subject: [PATCH] GPU/HW: Fix force-round-coords with texture cache --- src/core/gpu_hw_shadergen.cpp | 2 +- src/core/shader_cache_version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_hw_shadergen.cpp b/src/core/gpu_hw_shadergen.cpp index e2c18d01b..4b00f482b 100644 --- a/src/core/gpu_hw_shadergen.cpp +++ b/src/core/gpu_hw_shadergen.cpp @@ -882,7 +882,7 @@ float4 SampleFromVRAM(TEXPAGE_VALUE texpage, float2 coords) float4 SampleFromPageTexture(float2 coords) { // Cached textures. -#if UPSCALED == 0 || FORCE_ROUND_TEXCOORDS != 0 +#if UPSCALED == 0 float2 fpart = coords - roundEven(coords); #else float2 fpart = frac(coords); diff --git a/src/core/shader_cache_version.h b/src/core/shader_cache_version.h index d8afe45f0..c21c53c29 100644 --- a/src/core/shader_cache_version.h +++ b/src/core/shader_cache_version.h @@ -5,4 +5,4 @@ #include "common/types.h" -static constexpr u32 SHADER_CACHE_VERSION = 18; +static constexpr u32 SHADER_CACHE_VERSION = 19;