01948: All alg.c and cliffhgr.c sets: Access Violation when taking a snapshot

This commit is contained in:
Aaron Giles 2008-06-30 16:27:56 +00:00
parent 744c82763e
commit f33daa0877

View File

@ -291,7 +291,7 @@ INLINE UINT32 get_texel_yuy16_bilinear(const render_texinfo *texture, INT32 curu
if (v0 < 0) v0 = v1 = 0;
else if (v0 + 1 >= texture->height) v0 = texture->height - 1, v1 = 0;
texbase += v0 * texture->rowpixels + u0;
texbase += v0 * texture->rowpixels + (u0 & ~1);
if ((curu & 0x10000) == 0)
{