mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 11:02:44 +03:00
chore(gx): pool discard uses pool invalidate
This commit is contained in:
parent
a44a9a1ce1
commit
313e2b81ff
@ -1,9 +1,12 @@
|
|||||||
#include "gx/buffer/CGxPool.hpp"
|
#include "gx/buffer/CGxPool.hpp"
|
||||||
|
|
||||||
void CGxPool::Discard() {
|
void CGxPool::Discard() {
|
||||||
for (auto buf = this->m_bufList.Head(); buf; buf = this->m_bufList.Link(buf)->Next()) {
|
this->Invalidate();
|
||||||
buf->unk1C = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
this->unk1C = 0;
|
this->unk1C = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGxPool::Invalidate() {
|
||||||
|
for (auto buf = this->m_bufList.Head(); buf; buf = this->m_bufList.Next(buf)) {
|
||||||
|
buf->unk1C = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -30,7 +30,8 @@ class CGxPool : public TSLinkedNode<CGxPool> {
|
|||||||
, m_hint(hint)
|
, m_hint(hint)
|
||||||
, m_name(name)
|
, m_name(name)
|
||||||
{};
|
{};
|
||||||
void Discard(void);
|
void Discard();
|
||||||
|
void Invalidate();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user