hal/vulkan: Clear framebuffer cache during command buffer reset

This commit is contained in:
Connor Fitzgerald committed 2025-07-30 19:10:41 -04:00
1 parent 4040fea676
commit 4836cb58b7
2 files changed
+10

No files matched your search

+6
View File
@@ -40,6 +40,12 @@ Bottom level categories:
## Unreleased
## v26.0.3 (2025-07-30)
### Bug Fixes
- Fixed memory leak in vulkan backend. By @cwfitzgerald in [#8031](https://github.com/gfx-rs/wgpu/pull/8031).
## v26.0.2 (2025-07-26)
### Bug Fixes
+4
View File
@@ -180,6 +180,10 @@ impl crate::CommandEncoder for super::CommandEncoder {
self.free
.extend(cmd_bufs.into_iter().map(|cmd_buf| cmd_buf.raw));
self.free.append(&mut self.discarded);
// Delete framebuffers from the framebuffer cache
for (_, framebuffer) in self.framebuffers.drain() {
unsafe { self.device.raw.destroy_framebuffer(framebuffer, None) };
}
let _ = unsafe {
self.device
.raw