mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 02:50:26 +00:00
LibSoftGPU: Test for 1.f
equality in determining the scale factor
We are still not doing the right thing here, but using `<=` instead of `<` at least gets rid of artifacts in Grim Fandango.
This commit is contained in:
parent
27c68624b6
commit
ae88c642c6
Notes:
sideshowbarker
2024-07-17 16:40:39 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/ae88c642c6 Pull-request: https://github.com/SerenityOS/serenity/pull/13209 Reviewed-by: https://github.com/Quaker762 ✅ Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ Vector4<AK::SIMD::f32x4> Sampler::sample_2d(Vector2<AK::SIMD::f32x4> const& uv)
|
|||
// parallelisation as we could also end up with different filter modes per pixel.
|
||||
|
||||
// Note: scale_factor approximates texels per pixel. This means a scale factor less than 1 indicates texture magnification.
|
||||
if (scale_factor[0] < 1)
|
||||
if (scale_factor[0] <= 1.f)
|
||||
return sample_2d_lod(uv, expand4(base_level), m_config.texture_mag_filter);
|
||||
|
||||
if (m_config.mipmap_filter == MipMapFilter::None)
|
||||
|
|
Loading…
Reference in a new issue