mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
metal: fix Buffers, fix shader cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user