From 540b17ec0ed0659b5355eab7b018cb243eed5fa8 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Tue, 7 Apr 2026 18:31:36 +1000 Subject: Only create query pool when we support doing anything --- src/queue_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/queue_context.cc b/src/queue_context.cc index c920610..0d83f66 100644 --- a/src/queue_context.cc +++ b/src/queue_context.cc @@ -36,14 +36,14 @@ QueueContext::CommandPoolOwner::~CommandPoolOwner() { QueueContext::QueueContext(DeviceContext& device, const VkQueue& queue, const std::uint32_t& queue_family_index) - : device(device), queue(queue), queue_family_index(queue_family_index), - command_pool(std::make_unique(*this)) { + : device(device), queue(queue), queue_family_index(queue_family_index) { // Only construct things if we actually support our operations. if (!device.physical_device.supports_required_extensions) { return; } + this->command_pool = std::make_unique(*this); this->timestamp_pool = std::make_unique(*this); this->strategy = [&]() -> std::unique_ptr { if (device.instance.layer.should_expose_reflex) { -- cgit v1.2.3