From efbe5bc4b651d1f7f726bb064255e0e2562f7490 Mon Sep 17 00:00:00 2001 From: degasus Date: Fri, 9 Oct 2015 20:50:36 +0200 Subject: VideoSW: Use more VideoCommon Now we require lots of empty functions, but this removes by far more duplicated code. --- Source/Core/VideoBackends/Software/SetupUnit.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'Source/Core/VideoBackends/Software/SetupUnit.cpp') diff --git a/Source/Core/VideoBackends/Software/SetupUnit.cpp b/Source/Core/VideoBackends/Software/SetupUnit.cpp index e433ae17f0..a9ef985963 100644 --- a/Source/Core/VideoBackends/Software/SetupUnit.cpp +++ b/Source/Core/VideoBackends/Software/SetupUnit.cpp @@ -4,11 +4,9 @@ #include "Common/ChunkFile.h" #include "VideoBackends/Software/Clipper.h" -#include "VideoBackends/Software/CPMemLoader.h" -#include "VideoBackends/Software/OpcodeDecoder.h" #include "VideoBackends/Software/SetupUnit.h" -#include "VideoBackends/Software/SWStatistics.h" +#include "VideoCommon/OpcodeDecoding.h" void SetupUnit::Init(u8 primitiveType) { @@ -167,20 +165,3 @@ void SetupUnit::SetupLineStrip() void SetupUnit::SetupPoint() {} -void SetupUnit::DoState(PointerWrap &p) -{ - // TODO: some or all of this is making the save states stop working once Dolphin is closed...sometimes (usually) - // I have no idea what specifically is wrong, or if this is even important. Disabling it doesn't seem to make any noticible difference... -/* p.Do(m_PrimType); - p.Do(m_VertexCounter); - for (int i = 0; i < 3; ++i) - m_Vertices[i].DoState(p); - - if (p.GetMode() == PointerWrap::MODE_READ) - { - m_VertPointer[0] = &m_Vertices[0]; - m_VertPointer[1] = &m_Vertices[1]; - m_VertPointer[2] = &m_Vertices[2]; - m_VertWritePointer = m_VertPointer[0]; - }*/ -} -- cgit v1.2.3