vulkan: Don't cull vertices
authorBenjamin Otte <otte@redhat.com>
Fri, 12 May 2023 16:17:44 +0000 (18:17 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
We end up with the backside, when we scale(-1) and we still want it to
be visible, just flipped.

gsk/vulkan/gskvulkanpipeline.c

index 7158bf837c5611db9af2be4aaa6e4bc545e73fdd..0a4a54d8e641a917240edb171bd59f3b217bfe7c 100644 (file)
@@ -108,7 +108,7 @@ gsk_vulkan_pipeline_new (GType                    pipeline_type,
                                                    .depthClampEnable = VK_FALSE,
                                                    .rasterizerDiscardEnable = VK_FALSE,
                                                    .polygonMode = VK_POLYGON_MODE_FILL,
-                                                   .cullMode = VK_CULL_MODE_BACK_BIT,
+                                                   .cullMode = VK_CULL_MODE_NONE,
                                                    .frontFace = VK_FRONT_FACE_CLOCKWISE,
                                                    .lineWidth = 1.0f,
                                                },