diff --git a/src/vkvg_context.c b/src/vkvg_context.c index deee2d0c..cfbabe8c 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -1,24 +1,6 @@ -/* - * Copyright (c) 2018-2020 Jean-Philippe Bruyère - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the - * Software, and to permit persons to whom the Software is furnished to do so, subject - * to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ +// Copyright (c) 2018-2024 Jean-Philippe Bruyère +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) #include "vkvg_device_internal.h" #include "vkvg_context_internal.h" diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index 1ee30280..b6a9068f 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -1859,7 +1859,8 @@ void _fill_non_zero (VkvgContext ctx){ if (pathPointCount > 2) { VKVG_IBO_INDEX_TYPE firstVertIdx = (VKVG_IBO_INDEX_TYPE)(ctx->vertCount - ctx->curVertOffset); - ear_clip_point* ecps = (ear_clip_point*)malloc(pathPointCount*sizeof(ear_clip_point)); + //ear_clip_point* ecps = (ear_clip_point*)malloc(pathPointCount*sizeof(ear_clip_point)); + ear_clip_point ecps[pathPointCount]; uint32_t ecps_count = pathPointCount; VKVG_IBO_INDEX_TYPE i = 0; @@ -1912,7 +1913,6 @@ void _fill_non_zero (VkvgContext ctx){ } if (ecps_count == 3) _add_triangle_indices(ctx, ecp_current->next->idx, ecp_current->idx, ecp_current->next->next->idx); - free (ecps); //limit batch size here to 1/3 of the ibo index type ability if (ctx->vertCount - ctx->curVertOffset > VKVG_IBO_MAX / 3) diff --git a/src/vkvg_device.c b/src/vkvg_device.c index 7783fb5f..893d23ef 100644 --- a/src/vkvg_device.c +++ b/src/vkvg_device.c @@ -21,7 +21,6 @@ */ #include "vkvg_device_internal.h" -#include "vkvg_surface_internal.h" #include "vkvg_context_internal.h" #include "vkh_queue.h" #include "vkh_phyinfo.h"