- u.c[0] = static_cast<unsigned char>(attr[t].x*255);
- u.c[1] = static_cast<unsigned char>(attr[t].y*255);
- u.c[2] = static_cast<unsigned char>(attr[t].z*255);
- u.c[3] = static_cast<unsigned char>(attr[t].w*255);
+ u.c[0] = static_cast<unsigned char>(attr[sem].x*255);
+ u.c[1] = static_cast<unsigned char>(attr[sem].y*255);
+ u.c[2] = static_cast<unsigned char>(attr[sem].z*255);
+ u.c[3] = static_cast<unsigned char>(attr[sem].w*255);