Buffer resources from swap chain were not being released.

This commit is contained in:
Hordur Johannsson 2024-06-22 22:09:44 +00:00 committed by Stephen Gutekanst
parent 2f0415a603
commit 9e4611d5d6

View file

@ -1498,6 +1498,8 @@ pub const Resource = struct {
pub fn deinit(resource: *Resource) void {
if (resource.mem_allocator) |mem_allocator| {
mem_allocator.destroyResource(resource.*) catch {};
} else {
_ = resource.d3d_resource.lpVtbl.*.Release.?(resource.d3d_resource);
}
}
};