浏览代码

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

Jelle Raaijmakers 3 年之前
父节点
当前提交
fd4d6b0031
共有 1 个文件被更改,包括 2 次插入2 次删除
  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_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 };