--- ray/src/common/readmesh.c 2003/10/22 02:06:34 2.10 +++ ray/src/common/readmesh.c 2004/01/30 00:08:31 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: readmesh.c,v 2.10 2003/10/22 02:06:34 greg Exp $"; +static const char RCSid[] = "$Id: readmesh.c,v 2.11 2004/01/30 00:08:31 greg Exp $"; #endif /* * Routines for reading a compiled mesh from a file @@ -145,7 +145,7 @@ register MESHPATCH *pp; } else pp->norm = NULL; if (flags & MT_UV) { - pp->uv = (uint16 (*)[2])calloc(pp->nverts, 2*sizeof(uint16)); + pp->uv = (uint32 (*)[2])calloc(pp->nverts, 2*sizeof(uint32)); if (pp->uv == NULL) goto nomem; } else @@ -162,7 +162,7 @@ register MESHPATCH *pp; if (flags & MT_UV) for (i = 0; i < pp->nverts; i++) for (j = 0; j < 2; j++) - pp->uv[i][j] = mgetint(2); + pp->uv[i][j] = mgetint(4); /* local triangles */ pp->ntris = mgetint(2); if (pp->ntris < 0 || pp->ntris > 512)