Load the object matrices by loading them and not by loading the identity and multiplying.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1708 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-05-26 18:51:47 +00:00
parent 3c2afc391e
commit b29fad2da0
1 changed files with 2 additions and 4 deletions

View File

@ -752,8 +752,7 @@ static void pie_ShadowDrawLoop(void)
for (i = 0; i < nb_scshapes; i++) for (i = 0; i < nb_scshapes; i++)
{ {
glLoadIdentity(); glLoadMatrixf(scshapes[i].matrix);
glMultMatrixf( scshapes[i].matrix );
pie_DrawShadow(scshapes[i].shape, scshapes[i].flag, scshapes[i].flag_data, &scshapes[i].light); pie_DrawShadow(scshapes[i].shape, scshapes[i].flag, scshapes[i].flag_data, &scshapes[i].light);
} }
} }
@ -843,8 +842,7 @@ static void pie_DrawRemainingTransShapes(void)
glPushMatrix(); glPushMatrix();
for (i = 0; i < nb_tshapes; ++i) for (i = 0; i < nb_tshapes; ++i)
{ {
glLoadIdentity(); glLoadMatrixf(tshapes[i].matrix);
glMultMatrixf(tshapes[i].matrix);
pie_Draw3DShape2(tshapes[i].shape, tshapes[i].frame, tshapes[i].colour, pie_Draw3DShape2(tshapes[i].shape, tshapes[i].frame, tshapes[i].colour,
tshapes[i].specular, tshapes[i].flag, tshapes[i].flag_data); tshapes[i].specular, tshapes[i].flag, tshapes[i].flag_data);
} }