mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-15 21:46:09 +03:00
feat(ui): clear render batch in dtor
This commit is contained in:
parent
75982f4091
commit
e80d960d6b
@ -41,6 +41,10 @@ EGxBlend CSimpleBatchedMesh::GetAlphaMode() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CRenderBatch::~CRenderBatch() {
|
||||||
|
this->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
void CRenderBatch::Clear() {
|
void CRenderBatch::Clear() {
|
||||||
this->m_texturelist.SetCount(0);
|
this->m_texturelist.SetCount(0);
|
||||||
|
|
||||||
|
|||||||
@ -52,6 +52,7 @@ class CRenderBatch {
|
|||||||
TSLink<CRenderBatch> renderLink;
|
TSLink<CRenderBatch> renderLink;
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
~CRenderBatch();
|
||||||
void Clear();
|
void Clear();
|
||||||
void Finish();
|
void Finish();
|
||||||
void Queue(CTexture* texture, EGxBlend alphaMode, int32_t posCount, const C3Vector* position, const C2Vector* texCoord, int32_t colorCount, const CImVector* color, int32_t idx, const uint16_t* indices, CGxShader* shader);
|
void Queue(CTexture* texture, EGxBlend alphaMode, int32_t posCount, const C3Vector* position, const C2Vector* texCoord, int32_t colorCount, const CImVector* color, int32_t idx, const uint16_t* indices, CGxShader* shader);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user