From 589960f91bcf75a87a53f9526fa795948e4faee4 Mon Sep 17 00:00:00 2001 From: thelemonman Date: Fri, 8 Nov 2013 15:14:37 +0000 Subject: [PATCH] Make VERT coord field aligned to 16 bytes. --- desmume/src/gfx3d.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/gfx3d.h b/desmume/src/gfx3d.h index ed3f5e943..1eea3b14c 100644 --- a/desmume/src/gfx3d.h +++ b/desmume/src/gfx3d.h @@ -521,12 +521,13 @@ struct POLYLIST { }; struct VERT { + // Align to 16 for SSE instructions to work union { float coord[4]; struct { float x,y,z,w; }; - }; + } DS_ALIGN(16); union { float texcoord[2]; struct {