Skip to content

Commit

Permalink
port: align size of bg light block to 4
Browse files Browse the repository at this point in the history
this avoids unaligned accesses on ARM
  • Loading branch information
fgsfdsfgs committed Dec 29, 2024
1 parent 7f105f1 commit 0443c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/src/preprocess/filebg.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static void convertPrimaryLights(u8 *dst, u32 *dstpos, u8 *src, u32 *srcpos, u32
}

*srcpos += sizeof(*n64_lights) * num_lights;
*dstpos += sizeof(*host_lights) * num_lights;
*dstpos += ALIGN(sizeof(*host_lights) * num_lights, 4);
}

#define BLOCK_LEAF 0
Expand Down

0 comments on commit 0443c70

Please sign in to comment.