Use glDrawRangeElements to share vertices
authorNeil Roberts <neil@linux.intel.com>
Tue, 9 Dec 2008 13:02:28 +0000 (13:02 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 9 Dec 2008 13:02:28 +0000 (13:02 +0000)
commitbf72b8cdc3c43221e0813475957712f3ad9c8265
tree6f33dc8799620c05f745ccc45262c6145cad2e96
parentbafcfca797d29d3731b1af4675c341ed212fbd5d
Use glDrawRangeElements to share vertices

When drawing a quad from cogl_texture_multiple_rectangles share two of
the vertices in each triangle by using indices.
clutter/cogl/gl/cogl-context.c
clutter/cogl/gl/cogl-context.h
clutter/cogl/gl/cogl-texture.c