chore(gx): pool discard uses pool invalidate

This commit is contained in:
fallenoak 2023-03-19 13:27:55 -05:00
parent a44a9a1ce1
commit 313e2b81ff
2 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,12 @@
#include "gx/buffer/CGxPool.hpp"
void CGxPool::Discard() {
for (auto buf = this->m_bufList.Head(); buf; buf = this->m_bufList.Link(buf)->Next()) {
buf->unk1C = 0;
}
this->Invalidate();
this->unk1C = 0;
}
void CGxPool::Invalidate() {
for (auto buf = this->m_bufList.Head(); buf; buf = this->m_bufList.Next(buf)) {
buf->unk1C = 0;
}
}

View File

@ -30,7 +30,8 @@ class CGxPool : public TSLinkedNode<CGxPool> {
, m_hint(hint)
, m_name(name)
{};
void Discard(void);
void Discard();
void Invalidate();
};
#endif