2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:44:56 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2017-10-23 17:11:44 -10:00
parent 48ec4cf6eb
commit a5b7a7b96c
4 changed files with 7 additions and 4 deletions

2
hecl/extern/athena vendored

Submodule hecl/extern/athena updated: 5f1b4fe122...e3ce09d914

2
hecl/extern/boo vendored

Submodule hecl/extern/boo updated: 41d225bd64...d1b980b529

View File

@@ -77,7 +77,7 @@ std::string HLSL::GenerateVertToFragStruct(size_t extTexCount, bool reflectionCo
if (reflectionCoords)
retval += " float2 reflectTcgs[2] : REFLECTUV;\n"
" float reflectAlpha;\n";
" float reflectAlpha : REFLECTALPHA;\n";
return retval + "};\n";
}

View File

@@ -86,7 +86,7 @@ void ClientProcess::Worker::proc()
m_proc.m_initCv.notify_one();
m_didInit = true;
}
while (m_proc.m_pendingQueue.size())
while (m_proc.m_running && m_proc.m_pendingQueue.size())
{
std::shared_ptr<Transaction> trans = std::move(m_proc.m_pendingQueue.front());
++m_proc.m_inProgress;
@@ -186,8 +186,11 @@ void ClientProcess::shutdown()
{
if (!m_running)
return;
std::unique_lock<std::mutex> lk(m_mutex);
m_pendingQueue.clear();
m_running = false;
m_cv.notify_all();
lk.unlock();
for (Worker& worker : m_workers)
if (worker.m_thr.joinable())
worker.m_thr.join();