[vulkan] Correct the render pass order comparison

Since pointers are being sorted, need to use double pointer (I often
make this mistake).
This commit is contained in:
Bill Currie 2022-11-21 17:29:26 +09:00
parent aac4c6ef7a
commit 7a50cdd7a8

View file

@ -370,9 +370,9 @@ qfv_load_pipeline (vulkan_ctx_t *ctx, const char *name)
static int static int
renderpass_cmp (const void *_a, const void *_b) renderpass_cmp (const void *_a, const void *_b)
{ {
const qfv_renderpass_t *a = _a; __auto_type a = (const qfv_renderpass_t **) _a;
const qfv_renderpass_t *b = _b; __auto_type b = (const qfv_renderpass_t **) _b;
return a->order - b->order; return (*a)->order - (*b)->order;
} }
void void