Fix memory leak in wgpu lib
This commit is contained in:
parent
22a57f91db
commit
ad36acf238
1 changed files with 1 additions and 5 deletions
|
|
@ -8,11 +8,7 @@ namespace psemek::wgpu
|
|||
|
||||
queue device::get_queue()
|
||||
{
|
||||
auto ptr = wgpuDeviceGetQueue((WGPUDevice)get());
|
||||
// Queue is actually owned by the device
|
||||
// Reference it to prevent destroying
|
||||
wgpuQueueReference(ptr);
|
||||
return queue(ptr);
|
||||
return queue(wgpuDeviceGetQueue((WGPUDevice)get()));
|
||||
}
|
||||
|
||||
bind_group device::create_bind_group(bind_group::descriptor const & desc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue