# | Line 145 | Line 145 | register MESHPATCH *pp; | |
---|---|---|
145 | } else | |
146 | pp->norm = NULL; | |
147 | if (flags & MT_UV) { | |
148 | < | pp->uv = (uint32 (*)[2])calloc(pp->nverts, 2*sizeof(uint32)); |
148 | > | pp->uv = (uint16 (*)[2])calloc(pp->nverts, 2*sizeof(uint16)); |
149 | if (pp->uv == NULL) | |
150 | goto nomem; | |
151 | } else | |
# | Line 162 | Line 162 | register MESHPATCH *pp; | |
162 | if (flags & MT_UV) | |
163 | for (i = 0; i < pp->nverts; i++) | |
164 | for (j = 0; j < 2; j++) | |
165 | < | pp->uv[i][j] = mgetint(4); |
165 | > | pp->uv[i][j] = mgetint(2); |
166 | /* local triangles */ | |
167 | pp->ntris = mgetint(2); | |
168 | if (pp->ntris < 0 || pp->ntris > 512) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |