gfx3d: fix stack corruption in normal command

This commit is contained in:
zeromus 2009-05-18 05:36:50 +00:00
parent ca1ad0bfba
commit 0baa5914a5
1 changed files with 3 additions and 2 deletions

View File

@ -959,9 +959,10 @@ void gfx3d_glTexCoord(u32 val)
void gfx3d_glNormal(u32 v)
{
int i,c;
ALIGN(16) float normal[3] = { normalTable[v&1023],
ALIGN(16) float normal[4] = { normalTable[v&1023],
normalTable[(v>>10)&1023],
normalTable[(v>>20)&1023]};
normalTable[(v>>20)&1023],
1};
if (texCoordinateTransform == 2)
{