Fix T47405: subsurf inconsistent triangulation in OpenGL compared to applied modifier and render.

This commit is contained in:
Brecht Van Lommel 2016-02-14 03:50:41 +01:00
parent 3143ec29d0
commit de9ec80e64
Notes: blender-bot 2023-02-14 11:24:03 +01:00
Referenced by issue #47405, Bug when applying subsurf modifier on smooth objects.
1 changed files with 8 additions and 8 deletions

View File

@ -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 + 2;
varray[start++] = totloops + 1;
varray[start++] = totloops + 3;
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 + 2;
fc[mati].i_tri_visible += 6;