From 202f5468483f807585307690e6d43715c82954ae Mon Sep 17 00:00:00 2001 From: Spencer Elliott Date: Wed, 20 Sep 2023 10:18:55 -0500 Subject: [PATCH] Fixed alignment for matrix passed into UploadMatrix4x4 in gluLookAt --- GL/matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GL/matrix.c b/GL/matrix.c index 32afff4..d95cd49 100644 --- a/GL/matrix.c +++ b/GL/matrix.c @@ -409,7 +409,7 @@ GL_FORCE_INLINE void vec3f_normalize_sh4(float *v){ void gluLookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, GLfloat centerx, GLfloat centery, GLfloat centerz, GLfloat upx, GLfloat upy, GLfloat upz) { - GLfloat m [16]; + GLfloat m [16] __attribute__((aligned(32))); GLfloat f [3]; GLfloat u [3]; GLfloat s [3];