aboutsummaryrefslogtreecommitdiffstats
path: root/steamvr/vrcompositor/vulkan-wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'steamvr/vrcompositor/vulkan-wait.c')
-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;