Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-01-15 16:59:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-15 16:59:52 +0300
commit5e6c86cb1fdd3083da331f94424a9fe82704593e (patch)
tree78261d5dc721012630752d6cdd4466dee9a24df8
parent7ba07b7e64c884bf69aa3c31d771e0275d39c1c3 (diff)
GPU_batch_from_poly_2d_encoded: skip winding check
Ensure all polygons have the same winding instead.
-rw-r--r--source/blender/gpu/intern/gpu_batch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_batch.c b/source/blender/gpu/intern/gpu_batch.c
index 67a2fc5ab24..d96edb0f2f9 100644
--- a/source/blender/gpu/intern/gpu_batch.c
+++ b/source/blender/gpu/intern/gpu_batch.c
@@ -103,7 +103,7 @@ Gwn_Batch *GPU_batch_from_poly_2d_encoded(
const uint verts_len = (&verts[i_vert]) - verts_step;
BLI_assert(verts_len >= 3);
const uint tris_len = (verts_len - 2);
- BLI_polyfill_calc(verts_step, verts_len, 0, tris_step);
+ BLI_polyfill_calc(verts_step, verts_len, -1, tris_step);
/* offset indices */
if (verts_step != verts) {
uint *t = tris_step[0];