summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2023-12-13 10:17:21 +0100
committerj-p <jp_bruyere@hotmail.com>2025-03-24 19:12:00 +0100
commitc89bd8816b5652b1ac0774e7eb5831e4cc06968a (patch)
treecea00e6e549494dfae16d234505bc59ab357cef1
parent3019647f64fc3cc4739422b52345bf80fb89b749 (diff)
wip
-rw-r--r--src/vkvg_context.c24
-rw-r--r--src/vkvg_context_internal.c4
-rw-r--r--src/vkvg_device.c1
3 files changed, 5 insertions, 24 deletions
diff --git a/src/vkvg_context.c b/src/vkvg_context.c
index deee2d0..cfbabe8 100644
--- a/src/vkvg_context.c
+++ b/src/vkvg_context.c
@@ -1,24 +1,6 @@
-/*
- * Copyright (c) 2018-2020 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
- *
- * 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 <jp_bruyere@hotmail.com>
+//
+// 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 1ee3028..b6a9068 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 7783fb5..893d23e 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"