Browse Source

maxwell_3d: Initialize line widths

Initialize line widths to avoid setting a line width of zero.
ReinUsesLisp 6 năm trước cách đây
mục cha
commit
f3f056c3b6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/video_core/engines/maxwell_3d.cpp

+ 2 - 0
src/video_core/engines/maxwell_3d.cpp

@@ -106,6 +106,8 @@ void Maxwell3D::InitializeRegisterDefaults() {
     regs.rasterize_enable = 1;
     regs.rt_separate_frag_data = 1;
     regs.framebuffer_srgb = 1;
+    regs.line_width_aliased = 1.0f;
+    regs.line_width_smooth = 1.0f;
     regs.front_face = Maxwell3D::Regs::FrontFace::ClockWise;
     regs.polygon_mode_back = Maxwell3D::Regs::PolygonMode::Fill;
     regs.polygon_mode_front = Maxwell3D::Regs::PolygonMode::Fill;