test-cogl-materials: Run the 'all layers' test with different prims
authorNeil Roberts <neil@linux.intel.com>
Wed, 19 May 2010 22:36:18 +0000 (23:36 +0100)
committerNeil Roberts <neil@linux.intel.com>
Mon, 24 May 2010 15:10:56 +0000 (16:10 +0100)
commitff7ce2c5b290edcd9c44a60eb0bcc9b77f56827d
treecf6c9ddd2a8eb3ff489304e4d25fe3c012f0ce9c
parenta59bd4cfbb08501a9ba6ccf8061ee461b2271a17
test-cogl-materials: Run the 'all layers' test with different prims

The drawing code from test_invalid_texture_layers which draws a
rectangle, a polygon and a vertex buffer has been split out to
separate function. test_using_all_layers now also uses this so that it
will also test the other two primitives. This causes the test to fail
when all of the layers are drawn using a vertex buffer.

http://bugzilla.openedhand.com/show_bug.cgi?id=2132
tests/conform/test-cogl-materials.c