mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Correct the texcoord conversion.
1.0 is to represent the last pixel, not one past it.
This commit is contained in:
parent
e2db2dcb63
commit
f0285e5a08
1 changed files with 2 additions and 2 deletions
|
@ -171,8 +171,8 @@ sw_iqm_load_textures (iqm_t *iqm)
|
|||
continue;
|
||||
done_verts[vind / 8] |= (1 << (vind % 8));
|
||||
|
||||
*(int32_t *) (tc + 0) = *(float *) (tc + 0) * tex->width;
|
||||
*(int32_t *) (tc + 4) = *(float *) (tc + 4) * tex->height;
|
||||
*(int32_t *) (tc + 0) = *(float *) (tc + 0) * (tex->width - 1);
|
||||
*(int32_t *) (tc + 4) = *(float *) (tc + 4) * (tex->height - 1);
|
||||
}
|
||||
}
|
||||
dstring_delete (str);
|
||||
|
|
Loading…
Reference in a new issue