Re #448 Fixed car rendering bug when no track environment (never visible with current grEnvState loading code / track base)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4085 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e46c8e90e8c29ddeb9cbd999c973f00de9f06933
Former-commit-id: 0e2ebffc1eea2a1326849460bcc492fe0e7d3024
This commit is contained in:
pouillot 2011-11-06 13:02:59 +00:00
parent 84e5319122
commit 437ac0b7de

View file

@ -653,12 +653,12 @@ void cgrVtxTableCarPart::draw_geometry_array ()
glEnable(GL_TEXTURE_2D);
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
}
ttx = grCarInfo[_carIndex].distFromStart/50;
sgMakeTransMat4(mat, ttx, tty, ttz);
glMultMatrixf((float *)mat);
glMatrixMode(GL_MODELVIEW);
ttx = grCarInfo[_carIndex].distFromStart/50;
sgMakeTransMat4(mat, ttx, tty, ttz);
glMultMatrixf((float *)mat);
glMatrixMode(GL_MODELVIEW);
}
glActiveTextureARB(GL_TEXTURE0_ARB);
glEnable(GL_TEXTURE_2D);