summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2019-03-13 09:58:58 -0400
committerGravatar GitHub2019-03-13 09:58:58 -0400
commit71c4e876efd20e0bae875a80effe2bc5561453e7 (patch)
treea41be2a8504c4449dc0c142fb850c019e1902d2b
parentMerge pull request #2211 from lioncash/arbiter (diff)
parentvideo_core/texture: Fix up sampler lod bias (diff)
downloadyuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.gz
yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.xz
yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.zip
Merge pull request #2231 from ReinUsesLisp/fixup-bias
video_core/texture: Fix up sampler lod bias
-rw-r--r--src/video_core/textures/texture.h2
1 files changed, 1 insertions, 1 deletions
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 {
324 float GetLodBias() const { 324 float GetLodBias() const {
325 // Sign extend the 13-bit value. 325 // Sign extend the 13-bit value.
326 constexpr u32 mask = 1U << (13 - 1); 326 constexpr u32 mask = 1U << (13 - 1);
327 return static_cast<float>((mip_lod_bias ^ mask) - mask) / 256.0f; 327 return static_cast<s32>((mip_lod_bias ^ mask) - mask) / 256.0f;
328 } 328 }
329 329
330 std::array<float, 4> GetBorderColor() const { 330 std::array<float, 4> GetBorderColor() const {