Skip to content

Commit

Permalink
Free shader object layout cache and queue when destroying device
Browse files Browse the repository at this point in the history
  • Loading branch information
aleino-nv committed Nov 1, 2024
1 parent ec69b86 commit 7ee2a55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wgpu/wgpu-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ Context::~Context()
}
}

DeviceImpl::~DeviceImpl() {}
DeviceImpl::~DeviceImpl()
{
m_shaderObjectLayoutCache = decltype(m_shaderObjectLayoutCache)();
m_queue.setNull();
}

Result DeviceImpl::getNativeDeviceHandles(DeviceNativeHandles* outHandles)
{
Expand Down

0 comments on commit 7ee2a55

Please sign in to comment.