From a63295a87264e7e0a80b3375548c4c6447dc5bfb Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 13 Mar 2019 00:45:54 -0300 Subject: video_core/texture: Fix up sampler lod bias --- src/video_core/textures/texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 8c278c0e2..b8675f702 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -324,7 +324,7 @@ struct TSCEntry { float GetLodBias() const { // Sign extend the 13-bit value. constexpr u32 mask = 1U << (13 - 1); - return static_cast((mip_lod_bias ^ mask) - mask) / 256.0f; + return static_cast((mip_lod_bias ^ mask) - mask) / 256.0f; } std::array GetBorderColor() const { -- cgit v1.2.3