mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix rear mirror in Ridge Racer 2
This commit is contained in:
parent
380b51dc6d
commit
b35e89f646
1 changed files with 2 additions and 1 deletions
|
@ -362,8 +362,9 @@ 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;
|
||||||
|
|
||||||
glstate.viewport.set(vpX0 + renderX, vpY0 + renderY, vpWidth, vpHeight);
|
glstate.viewport.set(vpX0 + renderX, vpY0 + renderY, vpWidth, vpHeight);
|
||||||
// Sadly, as glViewport takes integers, we will not be able to support sub pixel offsets this way. But meh.
|
// Sadly, as glViewport takes integers, we will not be able to support sub pixel offsets this way. But meh.
|
||||||
|
|
Loading…
Add table
Reference in a new issue