mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Do not update viewport for rects in GraphicsDrawer::_updateStates
This commit is contained in:
parent
9acffe1adc
commit
cebca46e0a
|
@ -850,6 +850,7 @@ void GraphicsDrawer::drawRect(int _ulx, int _uly, int _lrx, int _lry)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
gSP.changed &= ~CHANGED_GEOMETRYMODE; // Don't update cull mode
|
gSP.changed &= ~CHANGED_GEOMETRYMODE; // Don't update cull mode
|
||||||
|
gSP.changed &= ~CHANGED_VIEWPORT; // Don't update viewport
|
||||||
if (gSP.changed || gDP.changed)
|
if (gSP.changed || gDP.changed)
|
||||||
_updateStates(DrawingState::Rect);
|
_updateStates(DrawingState::Rect);
|
||||||
|
|
||||||
|
@ -1067,6 +1068,8 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params)
|
||||||
_updateTextures();
|
_updateTextures();
|
||||||
cmbInfo.updateParameters();
|
cmbInfo.updateParameters();
|
||||||
} else {
|
} 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)
|
if (_params.texrectCmd && (gSP.changed | gDP.changed) != 0)
|
||||||
_updateStates(DrawingState::TexRect);
|
_updateStates(DrawingState::TexRect);
|
||||||
gfxContext.enable(enable::CULL_FACE, false);
|
gfxContext.enable(enable::CULL_FACE, false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user