mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Texrect drawer tuning: do not copy drawer.m_rect
This commit is contained in:
parent
fa102a65c9
commit
1b6d3cca9a
|
@ -130,10 +130,7 @@ void TexrectDrawer::add()
|
|||
}
|
||||
}
|
||||
if (!bContinue) {
|
||||
RectVertex rect[4];
|
||||
memcpy(rect, pRect, sizeof(rect));
|
||||
draw();
|
||||
memcpy(pRect, rect, sizeof(rect));
|
||||
drawer._updateTextures();
|
||||
CombinerInfo::get().updateParameters();
|
||||
}
|
||||
|
@ -226,7 +223,7 @@ bool TexrectDrawer::draw()
|
|||
m_lrx = m_max_lrx;
|
||||
m_lry = m_max_lry;
|
||||
|
||||
RectVertex * rect = drawer.m_rect;
|
||||
RectVertex rect[4];
|
||||
|
||||
f32 scaleX, scaleY;
|
||||
calcCoordsScales(m_pBuffer, scaleX, scaleY);
|
||||
|
|
|
@ -41,4 +41,4 @@ private:
|
|||
std::vector<RectCoords> m_vecRectCoords;
|
||||
};
|
||||
|
||||
#endif // TEXRECTDRAWER_H
|
||||
#endif // TEXRECTDRAWER_H
|
||||
|
|
Loading…
Reference in New Issue
Block a user