diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-14 05:50:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-14 05:51:41 +0300 |
commit | de9ec80e644bb86a3ebb258db9135c3ee32bdcac (patch) | |
tree | d125809c8a6ded378770a137ad0ce9dfe2230ec8 /source | |
parent | 3143ec29d0577948f2f7750c47a6a84ab33f39d7 (diff) |
Fix T47405: subsurf inconsistent triangulation in OpenGL compared to applied modifier and render.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |