summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-03-21 12:54:03 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-03-21 12:54:03 +0100
commitd21f96dc6687f53c86ac98210019b25184d13628 (patch)
tree1a100ad9ae39a99014ee0945507ba89cc0e3d1c8
parentddfb4a23596584f254275099acbd829c5a4305f1 (diff)
debug ctx->timelineStep only if timeline semaphore enabled
-rw-r--r--src/vkvg_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vkvg_context.c b/src/vkvg_context.c
index a6d4423..1fd8078 100644
--- a/src/vkvg_context.c
+++ b/src/vkvg_context.c
@@ -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)