Browse Source

LibSoftGPU: Set obvious FP values for `depth_min/max`

Jelle Raaijmakers 3 years ago
parent
commit
fd4d6b0031
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Userland/Libraries/LibSoftGPU/Device.h

+ 2 - 2
Userland/Libraries/LibSoftGPU/Device.h

@@ -37,8 +37,8 @@ struct RasterizerOptions {
     BlendFactor blend_source_factor { BlendFactor::One };
     BlendFactor blend_source_factor { BlendFactor::One };
     BlendFactor blend_destination_factor { BlendFactor::One };
     BlendFactor blend_destination_factor { BlendFactor::One };
     u32 color_mask { 0xffffffff };
     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 };
     DepthTestFunction depth_func { DepthTestFunction::Less };
     PolygonMode polygon_mode { PolygonMode::Fill };
     PolygonMode polygon_mode { PolygonMode::Fill };
     FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f };
     FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f };