chore(gx): pool discard uses pool invalidate

This commit is contained in:
fallenoak committed 2023-03-19 13:27:55 -05:00
1 parent a44a9a1ce1
commit 313e2b81ff
2 files changed
+9 -5

No files matched your search

+7 -4
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;
}
}
+2 -1
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