mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a: Fix swizzle_box for volumetric textures
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user