Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8807ecb3 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am bccfcd95: Merge "fix [2931718] glDrawArrays skips a triangle when more than...

am bccfcd95: Merge "fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used." into gingerbread

Merge commit 'bccfcd95d3cc4029c1ed8514d31436a857283873' into gingerbread-plus-aosp

* commit 'bccfcd95d3cc4029c1ed8514d31436a857283873':
  fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used.
parents 5172c537 d6a9447c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -685,8 +685,8 @@ static void drawPrimitivesTriangleFanOrStrip(ogles_context_t* c,
            } while (num);
        }
        if (count) {
            v0 = c->vc.vBuffer + 2 + num - 2;
            v1 = c->vc.vBuffer + 2 + num - 1;
            v0 = c->vc.vBuffer + 2 + vcs - 2;
            v1 = c->vc.vBuffer + 2 + vcs - 1;
            if ((winding&2) == 0) {
                // for strips copy back the two last compiled vertices
                c->vc.vBuffer[0] = *v0;