1
0
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:
Sergey Lipskiy 2017-11-24 17:27:31 +07:00
parent fa102a65c9
commit 1b6d3cca9a
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -41,4 +41,4 @@ private:
std::vector<RectCoords> m_vecRectCoords;
};
#endif // TEXRECTDRAWER_H
#endif // TEXRECTDRAWER_H