]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug ctx->timelineStep only if timeline semaphore enabled
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 21 Mar 2022 11:54:03 +0000 (12:54 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 21 Mar 2022 11:54:03 +0000 (12:54 +0100)
src/vkvg_context.c

index a6d4423633fe6b8d3a5de05e43341a71a8ba11c1..1fd8078c3c7e3542105a6ba9fcd60eebb2ccf90f 100644 (file)
@@ -83,7 +83,9 @@ void _init_ctx (VkvgContext ctx) {
        ctx->cmdStarted                 = false;
        ctx->curClipState               = vkvg_clip_state_none;
        ctx->vertCount                  = ctx->indCount = 0;
+#ifdef VKVG_ENABLE_VK_TIMELINE_SEMAPHORE
        ctx->timelineStep               = 0;
+#endif
 }
 
 VkvgContext vkvg_create(VkvgSurface surf)