소스 검색

maxwell_3d: this seem more correct.

namkazy 6 년 전
부모
커밋
22f4268c2f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/video_core/engines/maxwell_3d.cpp

+ 2 - 2
src/video_core/engines/maxwell_3d.cpp

@@ -161,8 +161,8 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) {
                "Invalid Maxwell3D register, increase the size of the Regs structure");
 
     // Keep track of the register value in shadow_state when requested.
-    if (regs.shadow_ram_control == Regs::ShadowRamControl::Track ||
-        regs.shadow_ram_control == Regs::ShadowRamControl::TrackWithFilter) {
+    if (shadow_state.shadow_ram_control == Regs::ShadowRamControl::Track ||
+        shadow_state.shadow_ram_control == Regs::ShadowRamControl::TrackWithFilter) {
         shadow_state.reg_array[method] = method_call.argument;
     }