Why isnt this working....

This commit is contained in:
Dynamitos
2023-11-13 13:23:16 +01:00
parent a545426b32
commit 9a26fd75ca
6 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ void VertexData::updateMesh(const Component::Transform& transform, PMesh mesh)
matInstanceData.meshes.add(MeshInstanceData{
.id = mesh->id,
.instance = InstanceData {
.transformMatrix = Matrix4(1),//transform.toMatrix(),
.transformMatrix = transform.toMatrix(),
},
.indexBuffer = mesh->indexBuffer,
});
-1
View File
@@ -16,7 +16,6 @@ Semaphore::Semaphore(PGraphics graphics)
Semaphore::~Semaphore()
{
graphics = nullptr;
vkDestroySemaphore(graphics->getDevice(), handle, nullptr);
}