mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
23 lines
353 B
C++
23 lines
353 B
C++
|
|
#include "gx/glsdl/GLObject.hpp"
|
||
|
|
#include <bc/Debug.hpp>
|
||
|
|
|
||
|
|
void GLObject::AddRefTwin() {
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32_t GLObject::Release() {
|
||
|
|
BLIZZARD_ASSERT(this->m_RefCount > 0);
|
||
|
|
|
||
|
|
this->m_RefCount--;
|
||
|
|
|
||
|
|
if (this->m_RefCount == 0) {
|
||
|
|
this->ReleaseObject();
|
||
|
|
}
|
||
|
|
|
||
|
|
this->ReleaseTwin();
|
||
|
|
|
||
|
|
return this->m_RefCount;
|
||
|
|
}
|
||
|
|
|
||
|
|
void GLObject::ReleaseTwin() {
|
||
|
|
}
|