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