Add macro for automatic alignment of matrices

This commit is contained in:
Jonathan Platzer
2018-07-19 10:14:30 +02:00
parent 2d63d7e0cd
commit cc5f533fc9
6 changed files with 15 additions and 9 deletions

View File

@@ -151,7 +151,7 @@ glm_inv_tr(mat4 mat) {
#if defined( __SSE__ ) || defined( __SSE2__ )
glm_inv_tr_sse2(mat);
#else
CGLM_ALIGN(16) mat3 r;
CGLM_ALIGN_MAT mat3 r;
CGLM_ALIGN(16) vec3 t;
/* rotate */