diff --git a/hw/xbox/nv2a/swizzle.c b/hw/xbox/nv2a/swizzle.c index 4df1877033..30bf232bb8 100644 --- a/hw/xbox/nv2a/swizzle.c +++ b/hw/xbox/nv2a/swizzle.c @@ -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); } }