Explorar o código

Merge pull request #3695 from ReinUsesLisp/default-attributes

maxwell_3d: Initialize format attributes constant as one
bunnei %!s(int64=6) %!d(string=hai) anos
pai
achega
d3e0cefa60
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/video_core/engines/maxwell_3d.cpp

+ 4 - 0
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;