Merge branch 'fix-glulookat-alignment' into 'master'

Fixed alignment for matrix passed into UploadMatrix4x4 in gluLookAt

See merge request simulant/GLdc!108
This commit is contained in:
Spencer Elliott 2023-09-20 15:20:57 +00:00
commit d3111391b1

View File

@ -409,7 +409,7 @@ GL_FORCE_INLINE void vec3f_normalize_sh4(float *v){
void gluLookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, GLfloat centerx, void gluLookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, GLfloat centerx,
GLfloat centery, GLfloat centerz, GLfloat upx, GLfloat upy, GLfloat centery, GLfloat centerz, GLfloat upx, GLfloat upy,
GLfloat upz) { GLfloat upz) {
GLfloat m [16]; GLfloat m [16] __attribute__((aligned(32)));
GLfloat f [3]; GLfloat f [3];
GLfloat u [3]; GLfloat u [3];
GLfloat s [3]; GLfloat s [3];