From: Jean-Philippe Bruyère Date: Mon, 7 Jun 2021 12:26:42 +0000 (+0200) Subject: disable even/odd fill on macOS because of missing triangle_fans support in moltenVK X-Git-Tag: v0.2.0~71 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=b7b2444e5aacd1d2f6b9b7702134b268f6756e3e;p=jp%2Fvkvg.git disable even/odd fill on macOS because of missing triangle_fans support in moltenVK --- 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;