diff --git a/libs/wgpu/source/device.cpp b/libs/wgpu/source/device.cpp index 0aedb904..b2debd90 100644 --- a/libs/wgpu/source/device.cpp +++ b/libs/wgpu/source/device.cpp @@ -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)