/* $Id$
This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
for(const unsigned char *c=array.get_format().begin(); c!=array.get_format().end(); ++c)
{
uint size=(*c&3)+1;
- switch(*c>>2)
+ uint type=*c>>2;
+ switch(type)
{
case 0:
*ptr++=x;
}
break;
default:
- const Attrib &a=av[(*c>>2)-4];
+ const Attrib &a=av[type-4];
*ptr++=a.x;
if(size>=2) *ptr++=a.y;
if(size>=3) *ptr++=a.z;