nv2a: Fix swizzle_box for volumetric textures

This commit is contained in:
Erik Abair 2022-01-27 22:00:23 -08:00 committed by mborgerson
parent 2d34f5108d
commit ef0a262efe
1 changed files with 3 additions and 3 deletions

View File

@ -102,9 +102,9 @@ void swizzle_box(
for (x = 0; x < width; x++) {
const uint8_t *src = src_buf
+ y * row_pitch + x * bytes_per_pixel;
uint8_t *dst = dst_buf + get_swizzled_offset(x, y, 0,
mask_x, mask_y, 0,
bytes_per_pixel);
uint8_t *dst = dst_buf +
get_swizzled_offset(x, y, z, mask_x, mask_y, mask_z,
bytes_per_pixel);
memcpy(dst, src, bytes_per_pixel);
}
}