aboutsummaryrefslogtreecommitdiff
path: root/src/device_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/device_context.cc')
-rw-r--r--src/device_context.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device_context.cc b/src/device_context.cc
index e2f2a4a..c9f1fd5 100644
--- a/src/device_context.cc
+++ b/src/device_context.cc
@@ -14,8 +14,8 @@ DeviceContext::DeviceContext(InstanceContext& parent_instance,
was_capability_requested(was_capability_requested), device(device),
vtable(std::move(vtable)) {
- // Only create our clock if we can support creating it.
- if (this->physical_device.supports_required_extensions) {
+ // Only create our clock if we were asked to do anything.
+ if (this->was_capability_requested) {
this->clock = std::make_unique<DeviceClock>(*this);
}
}