Skip to content

Commit

Permalink
Merge pull request #15570 from unknownbrackets/gles-skip
Browse files Browse the repository at this point in the history
GLES: Fix sw transform flip in skip buffer mode
  • Loading branch information
hrydgard committed Jun 6, 2022
2 parents 31a1cfd + feddff8 commit b3f1c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GLES/DrawEngineGLES.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit b3f1c50

Please sign in to comment.