From b7b2444e5aacd1d2f6b9b7702134b268f6756e3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 7 Jun 2021 14:26:42 +0200 Subject: [PATCH] disable even/odd fill on macOS because of missing triangle_fans support in moltenVK --- src/vkvg_context.c | 2 ++ src/vkvg_device_internal.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vkvg_context.c b/src/vkvg_context.c index fbf7cec..e9df71e 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -850,7 +850,9 @@ void vkvg_set_operator (VkvgContext ctx, vkvg_operator_t op){ _bind_draw_pipeline (ctx); } void vkvg_set_fill_rule (VkvgContext ctx, vkvg_fill_rule_t fr){ +#ifndef __APPLE__ ctx->curFillRule = fr; +#endif } vkvg_fill_rule_t vkvg_get_fill_rule (VkvgContext ctx){ return ctx->curFillRule; diff --git a/src/vkvg_device_internal.c b/src/vkvg_device_internal.c index f76c94c..de463e9 100644 --- a/src/vkvg_device_internal.c +++ b/src/vkvg_device_internal.c @@ -328,8 +328,9 @@ void _setupPipelines(VkvgDevice dev) pipelineCreateInfo.pDynamicState = &dynamicState; pipelineCreateInfo.layout = dev->pipelineLayout; - +#ifndef __APPLE__ VK_CHECK_RESULT(vkCreateGraphicsPipelines(dev->vkDev, dev->pipelineCache, 1, &pipelineCreateInfo, NULL, &dev->pipelinePolyFill)); +#endif inputAssemblyState.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; dsStateCreateInfo.back = dsStateCreateInfo.front = clipingOpState; -- 2.47.3