Fix T47405: subsurf inconsistent triangulation in OpenGL compared to applied modifier and render.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user