diff --git a/src/TexrectDrawer.cpp b/src/TexrectDrawer.cpp index ba0b6399..3d75b499 100644 --- a/src/TexrectDrawer.cpp +++ b/src/TexrectDrawer.cpp @@ -17,7 +17,6 @@ using namespace graphics; TexrectDrawer::TexrectDrawer() : m_numRects(0) -, m_clipRatio(gSP.clipRatio) , m_otherMode(0) , m_mux(0) , m_ulx(0) @@ -228,9 +227,7 @@ bool TexrectDrawer::addRect() if (!_lookAhead(true)) return false; - m_numRects = 1U; - m_clipRatio = gSP.clipRatio; - gSP.clipRatio = 1U; + m_numRects = 1; m_pBuffer = frameBufferList().getCurrent(); m_otherMode = gDP.otherMode._u64; m_mux = gDP.combine.mux; @@ -303,9 +300,7 @@ void TexrectDrawer::addBackgroundRect() RectVertex * pRect = drawer.m_rect; if (m_numRects == 0) { - m_numRects = 1U; - m_clipRatio = gSP.clipRatio; - gSP.clipRatio = 1U; + m_numRects = 1; m_pBuffer = frameBufferList().getCurrent(); m_otherMode = gDP.otherMode._u64; m_mux = gDP.combine.mux; @@ -358,8 +353,6 @@ bool TexrectDrawer::draw() drawer._setBlendMode(); gDP.changed |= CHANGED_RENDERMODE; // Force update of depth compare parameters drawer._updateDepthCompare(); - const u32 clipRatioPrev = gSP.clipRatio; - gSP.clipRatio = 1U; int enableAlphaTest = 0; switch (gDP.otherMode.cycleType) { @@ -471,7 +464,6 @@ bool TexrectDrawer::draw() m_pBuffer = frameBufferList().getCurrent(); _setDrawBuffer(); - gSP.clipRatio = clipRatioPrev != 1U ? clipRatioPrev : m_clipRatio; m_numRects = 0; m_vecRectCoords.clear(); diff --git a/src/TexrectDrawer.h b/src/TexrectDrawer.h index a8b2ea2e..6e90d05b 100644 --- a/src/TexrectDrawer.h +++ b/src/TexrectDrawer.h @@ -29,7 +29,6 @@ private: bool _lookAhead(bool _checkCoordinates) const; u32 m_numRects; - u32 m_clipRatio; u64 m_otherMode; u64 m_mux; f32 m_ulx, m_lrx, m_uly, m_lry, m_Z;