mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5189 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
845bb231ca
commit
09e5867cee
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ qboolean D3D8_LoadTextureMips(image_t *tex, const struct pendingtextureinfo *mip
|
|||
else
|
||||
{
|
||||
size_t rowbytes = ((mips->mip[i].width+blockwidth-1)/blockwidth)*blockbytes;
|
||||
for (y = 0, out = lock.pBits, in = mips->mip[i].data; y < mips->mip[i].height; y+blockheight, out += lock.Pitch, in += rowbytes)
|
||||
for (y = 0, out = lock.pBits, in = mips->mip[i].data; y < mips->mip[i].height; y+=blockheight, out += lock.Pitch, in += rowbytes)
|
||||
memcpy(out, in, rowbytes);
|
||||
}
|
||||
IDirect3DTexture8_UnlockRect(dt, i);
|
||||
|
|
Loading…
Reference in a new issue