diff options
| author | 2020-05-20 01:13:40 -0300 | |
|---|---|---|
| committer | 2020-05-27 16:53:43 -0300 | |
| commit | f3f056c3b60fda242ae08f3866832dd307d537ba (patch) | |
| tree | 115e9750a3c863d83f6bd4a8d6bd61635f3f70c0 /src | |
| parent | maxwell_3d: Initialize polygon modes (diff) | |
| download | yuzu-f3f056c3b60fda242ae08f3866832dd307d537ba.tar.gz yuzu-f3f056c3b60fda242ae08f3866832dd307d537ba.tar.xz yuzu-f3f056c3b60fda242ae08f3866832dd307d537ba.zip | |
maxwell_3d: Initialize line widths
Initialize line widths to avoid setting a line width of zero.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 6113da7f8..b5a70b9fc 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -106,6 +106,8 @@ void Maxwell3D::InitializeRegisterDefaults() { | |||
| 106 | regs.rasterize_enable = 1; | 106 | regs.rasterize_enable = 1; |
| 107 | regs.rt_separate_frag_data = 1; | 107 | regs.rt_separate_frag_data = 1; |
| 108 | regs.framebuffer_srgb = 1; | 108 | regs.framebuffer_srgb = 1; |
| 109 | regs.line_width_aliased = 1.0f; | ||
| 110 | regs.line_width_smooth = 1.0f; | ||
| 109 | regs.front_face = Maxwell3D::Regs::FrontFace::ClockWise; | 111 | regs.front_face = Maxwell3D::Regs::FrontFace::ClockWise; |
| 110 | regs.polygon_mode_back = Maxwell3D::Regs::PolygonMode::Fill; | 112 | regs.polygon_mode_back = Maxwell3D::Regs::PolygonMode::Fill; |
| 111 | regs.polygon_mode_front = Maxwell3D::Regs::PolygonMode::Fill; | 113 | regs.polygon_mode_front = Maxwell3D::Regs::PolygonMode::Fill; |