From de9ec80e644bb86a3ebb258db9135c3ee32bdcac Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 14 Feb 2016 03:50:41 +0100 Subject: Fix T47405: subsurf inconsistent triangulation in OpenGL compared to applied modifier and render. --- source/blender/blenkernel/intern/subsurf_ccg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index 5d3d75f3c3d..a5f7d568978 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -2060,13 +2060,13 @@ static void ccgDM_buffer_copy_triangles( for (x = 0; x < gridFaces; x++) { start = gpumat->start + fc[mati].i_tri_hidden; - varray[start--] = totloops + 1; + varray[start--] = totloops; varray[start--] = totloops + 2; varray[start--] = totloops + 3; varray[start--] = totloops; varray[start--] = totloops + 1; - varray[start--] = totloops + 3; + varray[start--] = totloops + 2; fc[mati].i_tri_hidden -= 6; @@ -2082,13 +2082,13 @@ static void ccgDM_buffer_copy_triangles( for (x = 0; x < gridFaces; x++) { start = gpumat->start + fc[mati].i_tri_visible; - varray[start++] = totloops + 3; + varray[start++] = totloops; varray[start++] = totloops + 2; - varray[start++] = totloops + 1; - varray[start++] = totloops + 3; - varray[start++] = totloops + 1; + varray[start++] = totloops; + varray[start++] = totloops + 1; + varray[start++] = totloops + 2; fc[mati].i_tri_visible += 6; -- cgit v1.2.3