GLES: Fix sw transform flip in skip buffer mode.

Was causing some things to be drawn in the wrong places and upside down.
This commit is contained in:
Unknown W. Brackets 2022-06-05 11:31:07 -07:00
parent 21bf41e6dd
commit feddff8299

View File

@ -380,7 +380,7 @@ void DrawEngineGLES::DoFlush() {
SoftwareTransform swTransform(params);
const Lin::Vec3 trans(gstate_c.vpXOffset, gstate_c.vpYOffset, gstate_c.vpZOffset);
const Lin::Vec3 scale(gstate_c.vpWidthScale, gstate_c.vpHeightScale * (params.flippedY ? 1.0 : -1.0f), gstate_c.vpDepthScale);
const Lin::Vec3 scale(gstate_c.vpWidthScale, gstate_c.vpHeightScale, gstate_c.vpDepthScale);
const bool invertedY = gstate_c.vpHeight * (params.flippedY ? 1.0 : -1.0f) < 0;
swTransform.SetProjMatrix(gstate.projMatrix, gstate_c.vpWidth < 0, invertedY, trans, scale);