Fix BUS Error due to gld_drawinfo.data alignment
Brought to you by:
e6y
The following patch is required on platforms that do not allow unaligned accesses (e.g. MIPS, IA64, some ARM) to prevent BUS Errors when accessing sprite->flags and possibly other objects in gld_drawinfo that require alignment on 8 byte boundaries. Usually, malloc() would take care of the alignment requirements, but that's not possible here due to the different alignment requiremtns of the various types stored in gld_drawinfo.data.
--- ./src/gl_drawinfo.c Sun Aug 04 22:48:57 CEST 2013
+++ ../x/prboom-plus-2.5.1.3//src/gl_drawinfo.c Wed Sep 28 11:34:43 CEST 2011
@@ -152,6 +152,10 @@
gld_drawinfo.data[gld_drawinfo.size].size += itemsize;
does it work now? (i replaced sizeofs with SIZEOF8 macro)