mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-05 12:12:59 +00:00
fix: properly assign new pool to m_tlsPool
This commit is contained in:
parent
9fec342554
commit
06a4096cf6
|
|
@ -24,7 +24,7 @@ void AABB::CreateNewThreadStorage() {
|
|||
if (m_tlsPoolDefault == nullptr) {
|
||||
m_tlsPoolDefault = tls;
|
||||
}
|
||||
m_tlsPool = m_tlsPoolDefault;
|
||||
m_tlsPool = tls;
|
||||
}
|
||||
|
||||
void AABB::UseDefaultThreadStorage() { m_tlsPool = m_tlsPoolDefault; }
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ void Vec3::CreateNewThreadStorage() {
|
|||
if (m_tlsPoolDefault == nullptr) {
|
||||
m_tlsPoolDefault = tls;
|
||||
}
|
||||
m_tlsPool = m_tlsPoolDefault;
|
||||
m_tlsPool = tls;
|
||||
}
|
||||
|
||||
void Vec3::UseDefaultThreadStorage() { m_tlsPool = m_tlsPoolDefault; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue