1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibSoftGPU: Use AK::abs directly instead of fabsf

Let's not go through LibC.
This commit is contained in:
Jelle Raaijmakers 2022-04-17 20:41:43 +02:00 committed by Andreas Kling
parent ec6016fa2c
commit 26a463506e

View file

@ -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();