forked from Ports/perfect_dark
port: align size of bg light block to 4
this avoids unaligned accesses on ARM
This commit is contained in:
1 parent
7f105f1dcb
commit
0443c708dd
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user