Graceful exit
This commit is contained in:
@@ -6,7 +6,6 @@ using namespace Seele;
|
||||
|
||||
extern List<VertexData*> vertexDataList;
|
||||
|
||||
|
||||
StaticMeshVertexData::StaticMeshVertexData()
|
||||
{
|
||||
vertexDataList.add(this);
|
||||
@@ -128,6 +127,18 @@ void StaticMeshVertexData::init(Gfx::PGraphics graphics)
|
||||
descriptorSet = descriptorLayout->allocateDescriptorSet();
|
||||
}
|
||||
|
||||
void StaticMeshVertexData::destroy()
|
||||
{
|
||||
VertexData::destroy();
|
||||
positions = nullptr;
|
||||
texCoords = nullptr;
|
||||
normals = nullptr;
|
||||
tangents = nullptr;
|
||||
biTangents = nullptr;
|
||||
colors = nullptr;
|
||||
descriptorLayout = nullptr;
|
||||
}
|
||||
|
||||
void StaticMeshVertexData::bindBuffers(Gfx::PRenderCommand)
|
||||
{
|
||||
// TODO: for legacy vertex buffer binding
|
||||
|
||||
Reference in New Issue
Block a user