mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[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:
parent
aac4c6ef7a
commit
7a50cdd7a8
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue