mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-27 19:55:44 +00:00
Merge pull request #2231 from ReinUsesLisp/fixup-bias
video_core/texture: Fix up sampler lod bias
This commit is contained in:
commit
71c4e876ef
|
@ -324,7 +324,7 @@ struct TSCEntry {
|
||||||
float GetLodBias() const {
|
float GetLodBias() const {
|
||||||
// Sign extend the 13-bit value.
|
// Sign extend the 13-bit value.
|
||||||
constexpr u32 mask = 1U << (13 - 1);
|
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 {
|
std::array<float, 4> GetBorderColor() const {
|
||||||
|
|
Loading…
Reference in a new issue