Checked out June 16 and observed this when locking 512x512xN size tex.
This may only be noticed for large size textures because the result had
wrapped to a negative value.
In both VolumeTexture::LockBox functions:
ORIGINAL:
int lockedSize = lockedBox.RowPitch * lockedBox.SlicePitch *
GetLevelDescription( level ).Height;
FIXED:
int lockedSize = lockedBox.SlicePitch * GetLevelDescription( level ).Depth;
- Ben C.
Original issue reported on code.google.com by benc...@gmail.com on 16 Jun 2008 at 9:44
Original issue reported on code.google.com by
benc...@gmail.com
on 16 Jun 2008 at 9:44