Make sure output parameters to _glKosSpotlight() are aligned to an 8-byte boundary.

This commit is contained in:
Lawrence Sebald 2014-10-25 19:41:00 -04:00
parent 97dc25918a
commit 8c34258eb4

View File

@ -406,7 +406,7 @@ void _glKosVertexLights(glVertex *P, pvr_vertex_t *v, GLuint count) {
float S; float S;
#endif #endif
unsigned char i; unsigned char i;
float L[4]; float L[4] __attribute__((aligned(8)));
float C[3] = { 0, 0, 0 }; float C[3] = { 0, 0, 0 };
colorui *color = (colorui *)&v->argb; colorui *color = (colorui *)&v->argb;
@ -456,7 +456,7 @@ void _glKosVertexLight(glVertex *P, pvr_vertex_t *v) {
float S; float S;
#endif #endif
unsigned char i; unsigned char i;
float L[4]; float L[4] __attribute__((aligned(8)));
/* Compute Ambient */ /* Compute Ambient */
float C[3] = { GL_MATERIAL.Ke[0] + GL_MATERIAL.Ka[0] *GL_GLOBAL_AMBIENT[0], float C[3] = { GL_MATERIAL.Ke[0] + GL_MATERIAL.Ka[0] *GL_GLOBAL_AMBIENT[0],
@ -501,7 +501,7 @@ GLuint _glKosVertexLightColor(glVertex *P) {
#endif #endif
GLuint color; GLuint color;
GLubyte i; GLubyte i;
float L[4]; float L[4] __attribute__((aligned(8)));
/* Compute Ambient */ /* Compute Ambient */
float C[3] = { GL_MATERIAL.Ke[0] + GL_MATERIAL.Ka[0] *GL_GLOBAL_AMBIENT[0], float C[3] = { GL_MATERIAL.Ke[0] + GL_MATERIAL.Ka[0] *GL_GLOBAL_AMBIENT[0],