From 725ff742a8ba0fd8ae55ebe9a86acc8872f6094d Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Tue, 1 May 2018 18:01:54 +0700 Subject: [PATCH] Update viewport when exiting texrect after texturedRectSpecial call. Fixed Paper Mario zoom-in when Mario approaches screen #1789 --- src/GraphicsDrawer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphicsDrawer.cpp b/src/GraphicsDrawer.cpp index 20a829d7..05ecbc35 100644 --- a/src/GraphicsDrawer.cpp +++ b/src/GraphicsDrawer.cpp @@ -1143,7 +1143,7 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params) gfxContext.enable(enable::CULL_FACE, false); if (_params.texrectCmd && texturedRectSpecial != nullptr && texturedRectSpecial(_params)) { - gSP.changed |= CHANGED_GEOMETRYMODE; + gSP.changed |= CHANGED_GEOMETRYMODE | CHANGED_VIEWPORT; return; }