mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 09:15:42 +01:00
Fix bug where we didn't initialize a variable properly, which led to a crash
This commit is contained in:
parent
01c01b96cd
commit
6b4adcc95b
@ -99,6 +99,7 @@ WorkerQueue::WorkerQueue(
|
||||
, m_InBufSz(inBufSz)
|
||||
, m_InBuf(inBuf)
|
||||
, m_OutBuf(outBuf)
|
||||
, m_NextBlock(0)
|
||||
, m_CompressionFunc(func)
|
||||
{
|
||||
clamp(m_NumThreads, uint32(1), uint32(kMaxNumWorkerThreads));
|
||||
@ -123,6 +124,7 @@ void WorkerQueue::Run() {
|
||||
m_StopWatch.Reset();
|
||||
m_StopWatch.Start();
|
||||
|
||||
m_NextBlock = 0;
|
||||
m_WaitingThreads = 0;
|
||||
|
||||
// Wait for them to finish...
|
||||
|
Loading…
Reference in New Issue
Block a user