test-cogl-materials: Use GL_MAX_VERTEX_ATTRIBS on GLES2
authorNeil Roberts <neil@linux.intel.com>
Tue, 7 Dec 2010 11:39:37 +0000 (11:39 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 13 Dec 2010 17:29:14 +0000 (17:29 +0000)
commitafe39296180e3839c42c5327f55ff8a773ba7000
tree011d055bab5d2d9f2794c5c48121a1739b6c9264
parentbdeb555ae1e440de0453cd8fd4a024ba8381016f
test-cogl-materials: Use GL_MAX_VERTEX_ATTRIBS on GLES2

When determining the maximum number of layers we also need to take
into account GL_MAX_VERTEX_ATTRIBS on GLES2. Cogl needs one vertex
attrib for each texture unit plus two for the position and color.
tests/conform/test-cogl-materials.c