From bc360584a3a8a8902f50642496b2d1287e5088ac Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 2 Jul 2022 14:49:51 -0500 Subject: VideoCommon: add structures to graphics mods to allow for future adding or removing parameters with less code overhead --- Source/Core/VideoCommon/VertexManagerBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index 22245f1db2..e77e6e4525 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -21,6 +21,7 @@ #include "VideoCommon/DataReader.h" #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/GeometryShaderManager.h" +#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h" #include "VideoCommon/IndexGenerator.h" #include "VideoCommon/NativeVertexFormat.h" #include "VideoCommon/OpcodeDecoding.h" @@ -492,10 +493,11 @@ void VertexManagerBase::Flush() for (const auto& texture_name : texture_names) { bool skip = false; + GraphicsModActionData::DrawStarted draw_started{&skip}; for (const auto action : g_renderer->GetGraphicsModManager().GetDrawStartedActions(texture_name)) { - action->OnDrawStarted(&skip); + action->OnDrawStarted(&draw_started); } if (skip == true) return; -- cgit v1.2.3