[vulkan] Zero draw's frame structs

Some of the queues start don't get fully initialized, but rather than go
through everything making sure they do, it's just easier to zero the
whole lot at the beginning.
This commit is contained in:
Bill Currie 2023-01-21 16:35:21 +09:00
parent d10cfb348e
commit bc041d6291

View file

@ -886,6 +886,8 @@ Vulkan_Draw_Init (vulkan_ctx_t *ctx)
DARRAY_INIT (&dctx->frames, frames); DARRAY_INIT (&dctx->frames, frames);
DARRAY_RESIZE (&dctx->frames, frames); DARRAY_RESIZE (&dctx->frames, frames);
dctx->frames.grow = 0; dctx->frames.grow = 0;
memset (dctx->frames.a, 0, dctx->frames.size * sizeof (drawframe_t));
DARRAY_INIT (&dctx->fonts, 16); DARRAY_INIT (&dctx->fonts, 16);
DARRAY_RESIZE (&dctx->fonts, 16); DARRAY_RESIZE (&dctx->fonts, 16);
dctx->fonts.size = 0; dctx->fonts.size = 0;