From fd4d6b0031e46f987e64e7b60ae44b8f0f44f753 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Thu, 30 Dec 2021 00:42:45 +0100 Subject: [PATCH] LibSoftGPU: Set obvious FP values for `depth_min/max` --- Userland/Libraries/LibSoftGPU/Device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibSoftGPU/Device.h b/Userland/Libraries/LibSoftGPU/Device.h index 1f8ebbdae5..49f3477a89 100644 --- a/Userland/Libraries/LibSoftGPU/Device.h +++ b/Userland/Libraries/LibSoftGPU/Device.h @@ -37,8 +37,8 @@ struct RasterizerOptions { BlendFactor blend_source_factor { BlendFactor::One }; BlendFactor blend_destination_factor { BlendFactor::One }; u32 color_mask { 0xffffffff }; - float depth_min { 0 }; - float depth_max { 1 }; + float depth_min { 0.f }; + float depth_max { 1.f }; DepthTestFunction depth_func { DepthTestFunction::Less }; PolygonMode polygon_mode { PolygonMode::Fill }; FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f };