File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
src/Cafe/HW/Latte/Renderer/Metal Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ std::vector<MetalRenderer::DeviceInfo> MetalRenderer::GetDevices()
49
49
MTL::Device* device = static_cast <MTL::Device*>(devices->object (i));
50
50
result.emplace_back (std::string (device->name ()->utf8String ()), device->registryID ());
51
51
}
52
+ devices->release ();
52
53
53
54
return result;
54
55
}
@@ -130,6 +131,7 @@ MetalRenderer::MetalRenderer()
130
131
break ;
131
132
}
132
133
}
134
+ devices->release ();
133
135
}
134
136
135
137
if (!m_device)
Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ void RendererShaderMtl::CompileInternal()
340
340
{
341
341
// Compile from source
342
342
library = LibraryFromSource ();
343
+ FinishCompilation ();
343
344
if (!library)
344
345
return ;
345
346
You can’t perform that action at this time.
0 commit comments