[vulkan] Fix an inappropriate cast

I'm surprised that worked at all (and more surprised it got past linux
gcc).
This commit is contained in:
Bill Currie 2021-03-27 19:55:43 +09:00
parent a9bd436837
commit 5b1ee0e6f6

View file

@ -218,7 +218,7 @@ flush_draw_scrap (vulkan_ctx_t *ctx)
static void
pic_free (drawctx_t *dctx, qpic_t *pic)
{
subpic_t *subpic = *(subpic_t **) pic->data;
subpic_t *subpic = *(subpic_t **) &pic->data[0];
QFV_SubpicDelete (subpic);
cmemfree (dctx->pic_memsuper, pic);
}