Commit 4cd07871 authored by Committed by Eric Anholt
glamor-composite: Use glDrawElements to reduce the count of vertices.
To split a rectangle (0,1,2,3) to two separated triangles need to feed 6 vertices, (0,1,2) and (0,2,3). use glDrawElements can reuse the shared vertices. Signed-off-by: Zhigang Gong <email@example.com>
Showing with 49 additions and 20 deletions