aboutsummaryrefslogtreecommitdiff
path: root/src/device_context.cc
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-03-30 16:26:51 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-03-30 16:26:51 +1100
commit22f8e5196508c7075493c246edb9cb9cad097c45 (patch)
tree4ddf1ca58b5cd8414d7378d5146b54a21f6ae60d /src/device_context.cc
parent644bc4ed5edd4e3ffa88750bdacb147c75df9546 (diff)
Force 'capability' to query anti_lag or low_latency2 based on EXPOSE_REFLEX env var
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);
}
}