video_core/texture: Fix up sampler lod bias

This commit is contained in:
ReinUsesLisp 2019-03-13 00:45:54 -03:00
parent 3bfd199497
commit a63295a872

View file

@ -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 {