]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug without glutess
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 7 Jan 2022 23:28:51 +0000 (00:28 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 7 Jan 2022 23:28:51 +0000 (00:28 +0100)
src/vkvg_context_internal.c

index 80ac9b20b96b0b6ac3cf06d767f99fff7eaa0e6f..d7c20da2bd466646ce45dd433128e3d9ac991318 100644 (file)
@@ -289,6 +289,7 @@ void _add_vertex(VkvgContext ctx, Vertex v){
 void _set_vertex(VkvgContext ctx, uint32_t idx, Vertex v){
        ctx->vertexCache[idx] = v;
 }
+#ifdef VKVG_FILL_NZ_GLUTESS
 void _add_indice (VkvgContext ctx, VKVG_IBO_INDEX_TYPE i) {
        ctx->indexCache[ctx->indCount++] = i;
        _check_index_cache_size(ctx);
@@ -315,6 +316,7 @@ void _add_indice_for_strip (VkvgContext ctx, VKVG_IBO_INDEX_TYPE i, bool odd) {
        ctx->indCount+=3;
        _check_index_cache_size(ctx);
 }
+#endif
 void _add_tri_indices_for_rect (VkvgContext ctx, VKVG_IBO_INDEX_TYPE i){
        VKVG_IBO_INDEX_TYPE* inds = &ctx->indexCache[ctx->indCount];
        inds[0] = i;