Browse Source
Merge pull request #2231 from ReinUsesLisp/fixup-bias
video_core/texture: Fix up sampler lod bias
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 { |
|
|
|
|