From 0fd5db9f780740662ec6781668b4ef0a366c70c2 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Fri, 15 Dec 2023 11:19:12 +0000 Subject: [PATCH] GS: Add local references to Move lambda function --- pcsx2/GS/GSState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index 80aa184359..eef91daeac 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -2122,7 +2122,7 @@ void GSState::Move() m_draw_transfers.push_back(new_transfer); } - auto copy = [=](const GSOffset& dpo, const GSOffset& spo, auto&& pxCopyFn) + auto copy = [this, sbp, dbp, sx, sy, dx, dy, w, h, yinc, xinc](const GSOffset& dpo, const GSOffset& spo, auto&& pxCopyFn) { int _sy = sy, _dy = dy; // Faster with local copied variables, compiler optimizations are dumb if (xinc > 0)