summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-03-13 04:45:54 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-03-13 04:45:54 +0100
commita63295a87264e7e0a80b3375548c4c6447dc5bfb (patch)
treea41be2a8504c4449dc0c142fb850c019e1902d2b /src
parentMerge pull request #2211 from lioncash/arbiter (diff)
downloadyuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.tar
yuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.tar.gz
yuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.tar.bz2
yuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.tar.lz
yuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.tar.xz
yuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.tar.zst
yuzu-a63295a87264e7e0a80b3375548c4c6447dc5bfb.zip
Diffstat (limited to 'src')
-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 {
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 {