Fix rear mirror in Ridge Racer 2

This commit is contained in:
raven02 2013-07-27 18:45:48 +08:00
parent 380b51dc6d
commit b35e89f646

View file

@ -362,6 +362,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
vpWidth *= renderWidthFactor; vpWidth *= renderWidthFactor;
vpHeight *= renderHeightFactor; vpHeight *= renderHeightFactor;
vpX0 = (vpXb - offsetX - fabsf(vpXa)) * renderWidthFactor;
// Flip vpY0 to match the OpenGL coordinate system. // Flip vpY0 to match the OpenGL coordinate system.
vpY0 = renderHeight - (vpYb - offsetY + fabsf(vpYa)) * renderHeightFactor; vpY0 = renderHeight - (vpYb - offsetY + fabsf(vpYa)) * renderHeightFactor;