GS/SW: Fix use-after-free on worker thread shutdown

This commit is contained in:
Connor McLaughlin 2022-04-22 20:30:57 +10:00 committed by refractionpcsx2
parent 6e8897d62b
commit 14398da51f
2 changed files with 2 additions and 3 deletions

View File

@ -1211,7 +1211,6 @@ void GSRasterizerList::OnWorkerStartup(int i)
void GSRasterizerList::OnWorkerShutdown(int i) void GSRasterizerList::OnWorkerShutdown(int i)
{ {
PerformanceMetrics::SetGSSWThreadTimer(i, Common::ThreadCPUTimer());
} }
void GSRasterizerList::Queue(const GSRingHeap::SharedPtr<GSRasterizerData>& data) void GSRasterizerList::Queue(const GSRingHeap::SharedPtr<GSRasterizerData>& data)

View File

@ -197,8 +197,8 @@ protected:
GSRasterizerList(int threads, GSPerfMon* perfmon); GSRasterizerList(int threads, GSPerfMon* perfmon);
void OnWorkerStartup(int i); static void OnWorkerStartup(int i);
void OnWorkerShutdown(int i); static void OnWorkerShutdown(int i);
public: public:
virtual ~GSRasterizerList(); virtual ~GSRasterizerList();