From 22f4268c2fbb8ca620b7eb18f98cf277537de6fc Mon Sep 17 00:00:00 2001 From: namkazy Date: Sun, 22 Mar 2020 12:02:54 +0700 Subject: [PATCH] maxwell_3d: this seem more correct. --- src/video_core/engines/maxwell_3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 7a3e21c6b..793ecedd2 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/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; }