mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibSoftGPU: Use AK::abs
directly instead of fabsf
Let's not go through LibC.
This commit is contained in:
parent
ec6016fa2c
commit
26a463506e
Notes:
sideshowbarker
2024-07-17 11:40:03 +09:00
Author: https://github.com/gmta
Commit: 26a463506e
Pull-request: https://github.com/SerenityOS/serenity/pull/13738
Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 3 additions and 3 deletions
|
@ -246,9 +246,9 @@ void Device::rasterize_triangle(Triangle const& triangle)
|
|||
f32x4 vertex1_fog_depth;
|
||||
f32x4 vertex2_fog_depth;
|
||||
if (m_options.fog_enabled) {
|
||||
vertex0_fog_depth = expand4(fabsf(vertex0.eye_coordinates.z()));
|
||||
vertex1_fog_depth = expand4(fabsf(vertex1.eye_coordinates.z()));
|
||||
vertex2_fog_depth = expand4(fabsf(vertex2.eye_coordinates.z()));
|
||||
vertex0_fog_depth = expand4(AK::abs(vertex0.eye_coordinates.z()));
|
||||
vertex1_fog_depth = expand4(AK::abs(vertex1.eye_coordinates.z()));
|
||||
vertex2_fog_depth = expand4(AK::abs(vertex2.eye_coordinates.z()));
|
||||
}
|
||||
|
||||
float const render_bounds_left = render_bounds.left();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue