mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-16 01:55:21 +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"
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,8 @@ class CGxPool : public TSLinkedNode<CGxPool> {
|
||||
, m_hint(hint)
|
||||
, m_name(name)
|
||||
{};
|
||||
void Discard(void);
|
||||
void Discard();
|
||||
void Invalidate();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user