summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-05-19 22:01:25 -0300
committerGravatar ReinUsesLisp2020-05-27 16:52:52 -0300
commit31eb658fea6ecae8fb4f0dde5abdeb1d8eb44ae0 (patch)
tree7a3260d08d53cc2b7826acf7dfc645182c046ae2 /src
parentMerge pull request #3981 from ReinUsesLisp/bar (diff)
downloadyuzu-31eb658fea6ecae8fb4f0dde5abdeb1d8eb44ae0.tar.gz
yuzu-31eb658fea6ecae8fb4f0dde5abdeb1d8eb44ae0.tar.xz
yuzu-31eb658fea6ecae8fb4f0dde5abdeb1d8eb44ae0.zip
maxwell_3d: Initialize polygon modes
NVN expects this to be initialized as Fill, otherwise games that never bind a rasterizer state will log an invalid polygon mode.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp2
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 024c9e43b..6113da7f8 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -107,6 +107,8 @@ void Maxwell3D::InitializeRegisterDefaults() {
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.front_face = Maxwell3D::Regs::FrontFace::ClockWise; 109 regs.front_face = Maxwell3D::Regs::FrontFace::ClockWise;
110 regs.polygon_mode_back = Maxwell3D::Regs::PolygonMode::Fill;
111 regs.polygon_mode_front = Maxwell3D::Regs::PolygonMode::Fill;
110 112
111 shadow_state = regs; 113 shadow_state = regs;
112 114