From 7a50cdd7a800a2977fcc635abe2a961e8e5aa268 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Nov 2022 17:29:26 +0900 Subject: [PATCH] [vulkan] Correct the render pass order comparison Since pointers are being sorted, need to use double pointer (I often make this mistake). --- libs/video/renderer/vulkan/vulkan_vid_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/video/renderer/vulkan/vulkan_vid_common.c b/libs/video/renderer/vulkan/vulkan_vid_common.c index 3e3c367f4..98d52b9ff 100644 --- a/libs/video/renderer/vulkan/vulkan_vid_common.c +++ b/libs/video/renderer/vulkan/vulkan_vid_common.c @@ -370,9 +370,9 @@ qfv_load_pipeline (vulkan_ctx_t *ctx, const char *name) static int renderpass_cmp (const void *_a, const void *_b) { - const qfv_renderpass_t *a = _a; - const qfv_renderpass_t *b = _b; - return a->order - b->order; + __auto_type a = (const qfv_renderpass_t **) _a; + __auto_type b = (const qfv_renderpass_t **) _b; + return (*a)->order - (*b)->order; } void