summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoState.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-11-25 16:23:54 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2023-11-26 16:27:26 -0600
commit849a0c13b5fbfc31b38e2b2593b1213b8adfb9f4 (patch)
tree115cb2a61d54aff3e376e59426453f0399e6560c /Source/Core/VideoCommon/VideoState.cpp
parent1a2d0882d04446550687424e36a81a2c16a6a00d (diff)
VideoCommon: move xf state management to its own class, so changes can be detected in places other than VertexShaderManager
Diffstat (limited to 'Source/Core/VideoCommon/VideoState.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoState.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoState.cpp b/Source/Core/VideoCommon/VideoState.cpp
index 7f005e1474..594aca1598 100644
--- a/Source/Core/VideoCommon/VideoState.cpp
+++ b/Source/Core/VideoCommon/VideoState.cpp
@@ -27,6 +27,7 @@
#include "VideoCommon/VertexShaderManager.h"
#include "VideoCommon/Widescreen.h"
#include "VideoCommon/XFMemory.h"
+#include "VideoCommon/XFStateManager.h"
void VideoCommon_DoState(PointerWrap& p)
{
@@ -105,6 +106,9 @@ void VideoCommon_DoState(PointerWrap& p)
g_widescreen->DoState(p);
p.DoMarker("Widescreen");
+ system.GetXFStateManager().DoState(p);
+ p.DoMarker("XFStateManager");
+
// Refresh state.
if (p.IsReadMode())
{