56bc54d242
We were calculating our vertex stride and allocating our vertex array differently depending on whether the user passed TRUE for use_color or not. The problem was that we were always writting color data to the array regardless of use_color. There was also a bug with _cogl_texture_sliced_polygon in that it was writing byte color components but we were expecting float components. We now use byte components in _cogl_multitexture_unsliced_polygon too and pass GL_UNSIGNED_BYTE to glColorPointer.