diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-13 14:58:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 14:58:58 +0100 |
commit | 71c4e876efd20e0bae875a80effe2bc5561453e7 (patch) | |
tree | a41be2a8504c4449dc0c142fb850c019e1902d2b | |
parent | Merge pull request #2211 from lioncash/arbiter (diff) | |
parent | video_core/texture: Fix up sampler lod bias (diff) | |
download | yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.gz yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.bz2 yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.lz yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.xz yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.tar.zst yuzu-71c4e876efd20e0bae875a80effe2bc5561453e7.zip |
-rw-r--r-- | src/video_core/textures/texture.h | 2 |
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 { float GetLodBias() const { // Sign extend the 13-bit value. constexpr u32 mask = 1U << (13 - 1); - return static_cast<float>((mip_lod_bias ^ mask) - mask) / 256.0f; + return static_cast<s32>((mip_lod_bias ^ mask) - mask) / 256.0f; } std::array<float, 4> GetBorderColor() const { |