metal: fix Buffers, fix shader cleanup

This commit is contained in:
Alex Szpakowski
2021-03-27 22:21:00 -03:00
parent 326dfe2632
commit 1e85e1b414
3 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -427,9 +427,11 @@ Shader::~Shader()
for (const auto &it : uniforms)
{
free(it.second.data);
if (it.second.textures != nullptr)
{
free(it.second.data);
delete[] it.second.textures;
}
}
delete[] localUniformBufferData;