cogl-vertex-buffer: Refix disabling texture coord arrays
authorNeil Roberts <neil@linux.intel.com>
Wed, 3 Feb 2010 14:31:12 +0000 (14:31 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 3 Feb 2010 14:31:12 +0000 (14:31 +0000)
commit74c0170ccc80504018f2aab849a6a311c64052a6
tree2765a82fa86a18615b449709c996fcd3488f1caa
parent301863d43bc79e792f8fe3ea5e9185d87cb74069
cogl-vertex-buffer: Refix disabling texture coord arrays

Commit 92a375ab4 changed the initial value of max_texcoord_attrib_unit
to -1 so that it could disable the texture coord array for the first
texture unit when there are no texture coords used in the vbo. However
max_texcoord_attrib_unit was an unsigned value so this actually became
G_MAXUINT. The disabling loop at the bottom still worked because
G_MAXUINT+1==0 but the check for whether any texture unit is greater
than max_texcoord_attrib_unit was failing so it would always end up
disabling all texture units. This is now fixed by changing
max_texcoord_attrib_unit to be signed.
clutter/cogl/cogl/cogl-vertex-buffer.c