1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Do not update viewport for rects in GraphicsDrawer::_updateStates

This commit is contained in:
Sergey Lipskiy 2017-03-08 21:19:39 +07:00
parent 9acffe1adc
commit cebca46e0a

View File

@ -850,6 +850,7 @@ void GraphicsDrawer::drawRect(int _ulx, int _uly, int _lrx, int _lry)
return;
gSP.changed &= ~CHANGED_GEOMETRYMODE; // Don't update cull mode
gSP.changed &= ~CHANGED_VIEWPORT; // Don't update viewport
if (gSP.changed || gDP.changed)
_updateStates(DrawingState::Rect);
@ -1067,6 +1068,8 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params)
_updateTextures();
cmbInfo.updateParameters();
} else {
gSP.changed &= ~CHANGED_GEOMETRYMODE; // Don't update cull mode
gSP.changed &= ~CHANGED_VIEWPORT; // Don't update viewport
if (_params.texrectCmd && (gSP.changed | gDP.changed) != 0)
_updateStates(DrawingState::TexRect);
gfxContext.enable(enable::CULL_FACE, false);