X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuilders%2Fprimitivebuilder.cpp;h=ca16fcde68f9f804026d27c05ec25dd412d77572;hp=4b88618a0874f05519a8c22690c5ce982e003563;hb=3a1b9cbe2441ae670a97541dc8ccb0a2860c8302;hpb=7f03ee52e8af5f857e44702b6d1c2822a51c62ef diff --git a/source/builders/primitivebuilder.cpp b/source/builders/primitivebuilder.cpp index 4b88618a..ca16fcde 100644 --- a/source/builders/primitivebuilder.cpp +++ b/source/builders/primitivebuilder.cpp @@ -60,11 +60,11 @@ PrimitiveType PrimitiveBuilder::get_type() const void PrimitiveBuilder::vertex_(const Vector4 &v) { const VertexFormat &format = array.get_format(); - for(const unsigned char *c=format.begin(); c!=format.end(); ++c) + for(const uint16_t *a=format.begin(); a!=format.end(); ++a) { - unsigned t = get_component_type(*c); - if(t