mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Revert "Set clip ratio to 1 in TexrectDrawer."
This reverts commit cd9b5e1c93f0a01a9648982f8ecffcc08919e6f2.
This commit is contained in:
parent
2169384245
commit
2ebfabaf8e
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user