aboutsummaryrefslogtreecommitdiffstats
path: root/steamvr
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-20 00:30:32 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-20 00:30:32 +0000
commitaed234e1060070348fe3c3f99bef4533b3ae2c58 (patch)
treec70c27ad6f356da24ad41fbc2989c909731aab60 /steamvr
parent2635b90a038bb8726cff9c29dd62c9bc07d9f7b4 (diff)
downloadsteamvr-patches-aed234e1060070348fe3c3f99bef4533b3ae2c58.tar.gz
steamvr-patches-aed234e1060070348fe3c3f99bef4533b3ae2c58.tar.xz
steamvr-patches-aed234e1060070348fe3c3f99bef4533b3ae2c58.zip
don't write code when tired, kids
Diffstat (limited to 'steamvr')
-rw-r--r--steamvr/vrcompositor/vulkan-wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/steamvr/vrcompositor/vulkan-wait.c b/steamvr/vrcompositor/vulkan-wait.c
index c3f93a5..8b915f4 100644
--- a/steamvr/vrcompositor/vulkan-wait.c
+++ b/steamvr/vrcompositor/vulkan-wait.c
@@ -53,7 +53,7 @@ void wait_for_input(
// We don't care about images we're giving someone else, or things we already
// own.
- if (target_queue != Q_GRAPHICS || target_queue != Q_COMPUTE) return;
+ if (target_queue != Q_GRAPHICS && target_queue != Q_COMPUTE) return;
struct Image *image = texture->image;
if (!image) return;
uint32_t owner = image->vtable->get_owner(image);
@@ -73,7 +73,7 @@ void wait_for_input(
uint64_t value = semaphore->vtable->get_value(semaphore);
if (!value) return;
uint32_t queue = renderer->current_queue;
- if (queue != Q_GRAPHICS || queue != Q_COMPUTE) return;
+ if (queue != Q_GRAPHICS && queue != Q_COMPUTE) return;
struct NativeDevice *device = &renderer->queues[queue];
if (!device->context) return;