diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-02-11 23:19:15 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-02-11 23:19:15 +1100 |
| commit | 76f3ef1d7c2b4393a8e8b402deb924e606448d27 (patch) | |
| tree | a291bec0544f007536a41ec1f590338aee1163e9 /src/queue_context.cc | |
| parent | 77e2be172718878b38999efc247ce7571435fcc8 (diff) | |
More cleanup, fix lifetime and mutex issues
Diffstat (limited to 'src/queue_context.cc')
| -rw-r--r-- | src/queue_context.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/queue_context.cc b/src/queue_context.cc index 8f7d571..930b0c5 100644 --- a/src/queue_context.cc +++ b/src/queue_context.cc @@ -51,12 +51,15 @@ QueueContext::QueueContext(DeviceContext& device_context, const VkQueue& queue, timestamp_pool(std::make_unique<TimestampPool>(*this)) {} QueueContext::~QueueContext() { + + // nuke our handles, so we avoid segfaults for now + this->handle_hack.clear(); + // Ugly - destructors of timestamp_pool should be called before we destroy // our vulkan objects. this->timestamp_pool.reset(); const auto& vtable = this->device_context.vtable; - vtable.DestroySemaphore(this->device_context.device, this->semaphore, nullptr); vtable.DestroyCommandPool(this->device_context.device, this->command_pool, |
