diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-20 21:40:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 21:40:18 -0400 |
commit | d3e0cefa600240c064f2d758cd5c74fc83ad3d40 (patch) | |
tree | 3a511d1b7c32f739b8e6e5a1cc66ff0475194db8 /src | |
parent | cb5b8ca88659574c9498f0261de9d3f63b3cb4b5 (diff) | |
parent | 238c6016f935fa73086d7a6609af59fee328717b (diff) |
Merge pull request #3695 from ReinUsesLisp/default-attributes
maxwell_3d: Initialize format attributes constant as one
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index ba63b44b48..baa74ad4ca 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -92,6 +92,10 @@ void Maxwell3D::InitializeRegisterDefaults() { color_mask.A.Assign(1); } + for (auto& format : regs.vertex_attrib_format) { + format.constant.Assign(1); + } + // NVN games expect these values to be enabled at boot regs.rasterize_enable = 1; regs.rt_separate_frag_data = 1; |