diff options
| author | 2020-03-22 13:35:11 +0700 | |
|---|---|---|
| committer | 2020-03-22 13:35:11 +0700 | |
| commit | d4e93cf38cc933700e6236addbd6a3ef15eb9a57 (patch) | |
| tree | a5e2368432096d1e452721807e92aff1efc17e3a | |
| parent | maxwell_3d: this seem more correct. (diff) | |
| download | yuzu-d4e93cf38cc933700e6236addbd6a3ef15eb9a57.tar.gz yuzu-d4e93cf38cc933700e6236addbd6a3ef15eb9a57.tar.xz yuzu-d4e93cf38cc933700e6236addbd6a3ef15eb9a57.zip | |
maxwell_3d: init shadow_state
| -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 793ecedd2..4e4373ad9 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -98,6 +98,8 @@ void Maxwell3D::InitializeRegisterDefaults() { | |||
| 98 | regs.framebuffer_srgb = 1; | 98 | regs.framebuffer_srgb = 1; |
| 99 | regs.front_face = Maxwell3D::Regs::FrontFace::ClockWise; | 99 | regs.front_face = Maxwell3D::Regs::FrontFace::ClockWise; |
| 100 | 100 | ||
| 101 | shadow_state = regs; | ||
| 102 | |||
| 101 | mme_inline[MAXWELL3D_REG_INDEX(draw.vertex_end_gl)] = true; | 103 | mme_inline[MAXWELL3D_REG_INDEX(draw.vertex_end_gl)] = true; |
| 102 | mme_inline[MAXWELL3D_REG_INDEX(draw.vertex_begin_gl)] = true; | 104 | mme_inline[MAXWELL3D_REG_INDEX(draw.vertex_begin_gl)] = true; |
| 103 | mme_inline[MAXWELL3D_REG_INDEX(vertex_buffer.count)] = true; | 105 | mme_inline[MAXWELL3D_REG_INDEX(vertex_buffer.count)] = true; |