Try to fix "W1" vertex error

This commit is contained in:
Henrik Rydgard 2012-12-21 10:18:06 +01:00
parent 55fe53f662
commit 52cf324e9e

View File

@ -278,6 +278,9 @@ public:
break;
}
switch (decFmt_.w1fmt) {
case 0:
// It's fine for there to be w0 weights but not w1.
break;
case DEC_FLOAT_1: memcpy(weights + 4, data_ + decFmt_.w1off, 4); break;
case DEC_FLOAT_2: memcpy(weights + 4, data_ + decFmt_.w1off, 8); break;
case DEC_FLOAT_3: memcpy(weights + 4, data_ + decFmt_.w1off, 12); break;