]> O.S.I.I.S - jp/vkvg.git/commitdiff
cleanup
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 18 Feb 2022 18:58:00 +0000 (19:58 +0100)
committerj-p <jp_bruyere@hotmail.com>
Fri, 18 Feb 2022 20:09:23 +0000 (21:09 +0100)
src/vkvg_context.c

index ed073b95d8c2f4b780eda502533437c18d139bf7..4a9fda969b1d2b38ef6e5aede30f625d086bdf7d 100644 (file)
@@ -80,10 +80,6 @@ void _init_ctx (VkvgContext ctx) {
        ctx->cmdStarted = false;
        ctx->curClipState = vkvg_clip_state_none;
        ctx->vertCount = ctx->indCount = ctx->curColor = 0;
-       /*ctx->pPrev = ctx->dev->lastCtx;
-       if (ctx->pPrev != NULL)
-               ctx->pPrev->pNext = ctx;
-       ctx->dev->lastCtx = ctx;*/
 }
 
 VkvgContext vkvg_create(VkvgSurface surf)
@@ -160,7 +156,6 @@ VkvgContext vkvg_create(VkvgSurface surf)
        _createDescriptorPool   (ctx);
        _init_descriptor_sets   (ctx);
        _font_cache_update_context_descset (ctx);
-       _update_descriptor_set  (ctx, ctx->dev->fontCache->texture, ctx->dsFont);
        _update_descriptor_set  (ctx, surf->dev->emptyImg, ctx->dsSrc);
        _update_gradient_desc_set(ctx);