EditMesh: Fix uninitialized value causing red outline on edges

This commit is contained in:
Clément Foucault 2018-10-17 18:49:27 +02:00
parent fd61b49d50
commit f666be6edf
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,8 @@ void main()
/* Remember that we are assuming the last vertex
* of a triangle is the provoking vertex (decide what flat attribs are). */
flag = eflag;
if ((eflag[2] & EDGE_EXISTS) != 0) {
/* Do 0 -> 1 edge strip */
faceColor = vec4(fcol.rgb, 0.0);