mirror of https://github.com/xemu-project/xemu.git
nv2a: Fix swizzle_box for volumetric textures
This commit is contained in:
parent
2d34f5108d
commit
ef0a262efe
|
@ -102,9 +102,9 @@ void swizzle_box(
|
||||||
for (x = 0; x < width; x++) {
|
for (x = 0; x < width; x++) {
|
||||||
const uint8_t *src = src_buf
|
const uint8_t *src = src_buf
|
||||||
+ y * row_pitch + x * bytes_per_pixel;
|
+ y * row_pitch + x * bytes_per_pixel;
|
||||||
uint8_t *dst = dst_buf + get_swizzled_offset(x, y, 0,
|
uint8_t *dst = dst_buf +
|
||||||
mask_x, mask_y, 0,
|
get_swizzled_offset(x, y, z, mask_x, mask_y, mask_z,
|
||||||
bytes_per_pixel);
|
bytes_per_pixel);
|
||||||
memcpy(dst, src, bytes_per_pixel);
|
memcpy(dst, src, bytes_per_pixel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue