Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbruyere committed Dec 13, 2023
1 parent 00d9bdf commit 94f7403
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
24 changes: 3 additions & 21 deletions src/vkvg_context.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/vkvg_context_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/vkvg_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 94f7403

Please sign in to comment.