diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-07 18:31:36 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-07 18:31:36 +1000 |
| commit | 540b17ec0ed0659b5355eab7b018cb243eed5fa8 (patch) | |
| tree | 07c3688fac25018e064234aeff522bc7d9994ad8 /src/queue_context.cc | |
| parent | c5b9a36ef5663dea196303701ad064b16eebd2de (diff) | |
Only create query pool when we support doing anything
Diffstat (limited to 'src/queue_context.cc')
| -rw-r--r-- | src/queue_context.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<CommandPoolOwner>(*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<CommandPoolOwner>(*this); this->timestamp_pool = std::make_unique<TimestampPool>(*this); this->strategy = [&]() -> std::unique_ptr<QueueStrategy> { if (device.instance.layer.should_expose_reflex) { |
