From ea330f17ad64e71df7371afbe9d322230883f3af Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 27 May 2003 05:26:53 +0000 Subject: [PATCH] fix normals --- stepmania/src/RageDisplay_OGL.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 6ceb04d32c..8f1a13b679 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -392,9 +392,9 @@ static void SetupVertices( const RageVertex v[], int iNumVerts ) Color[i*4+3] = v[i].c.a; Texture[i*2+0] = v[i].t[0]; Texture[i*2+1] = v[i].t[1]; - Normal[i*2+0] = v[i].n[0]; - Normal[i*2+1] = v[i].n[1]; - Normal[i*2+2] = v[i].n[2]; + Normal[i*3+0] = v[i].n[0]; + Normal[i*3+1] = v[i].n[1]; + Normal[i*3+2] = v[i].n[2]; } glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(3, GL_FLOAT, 0, Vertex);