ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/readmesh.c
(Generate patch)

Comparing ray/src/common/readmesh.c (file contents):
Revision 2.10 by greg, Wed Oct 22 02:06:34 2003 UTC vs.
Revision 2.11 by greg, Fri Jan 30 00:08:31 2004 UTC

# Line 145 | Line 145 | register MESHPATCH     *pp;
145          } else
146                  pp->norm = NULL;
147          if (flags & MT_UV) {
148 <                pp->uv = (uint16 (*)[2])calloc(pp->nverts, 2*sizeof(uint16));
148 >                pp->uv = (uint32 (*)[2])calloc(pp->nverts, 2*sizeof(uint32));
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(2);
165 >                                pp->uv[i][j] = mgetint(4);
166                                          /* local triangles */
167          pp->ntris = mgetint(2);
168          if (pp->ntris < 0 || pp->ntris > 512)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines