]> O.S.I.I.S - jp/vkvg.git/commitdiff
disable even/odd fill on macOS because of missing triangle_fans support in moltenVK
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 7 Jun 2021 12:26:42 +0000 (14:26 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 7 Jun 2021 12:26:42 +0000 (14:26 +0200)
src/vkvg_context.c
src/vkvg_device_internal.c

index fbf7cec67230ee978bcd0499f2330d7e4a50359b..e9df71e928df60c94c74a88c92f11fdf01f02076 100644 (file)
@@ -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;
index f76c94ccbf054cf6e0f286d760122f32541f65c8..de463e9c1ee84a44a6af1e2b714806f1c84b7b7a 100644 (file)
@@ -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;