mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-06-07 17:11:56 +00:00
Fix particle rendering bug introduced in 947f55f10b
This commit is contained in:
parent
e6063c16a3
commit
65248a274f
1 changed files with 2 additions and 1 deletions
|
@ -273,13 +273,14 @@ void Emitter::onRender(const RenderState& rs) const
|
|||
glPushMatrix();
|
||||
|
||||
glTranslatef(p->pos.x, p->pos.y,0);
|
||||
glScalef(width * p->scale.x, height * p->scale.y, 0);
|
||||
|
||||
glRotatef(p->rot.z, 0, 0, 1);
|
||||
|
||||
if (flip)
|
||||
glRotatef(180, 0, 1, 0);
|
||||
|
||||
glScalef(width * p->scale.x, height * p->scale.y, 0);
|
||||
|
||||
rquad->render(rs);
|
||||
|
||||
glPopMatrix();
|
||||
|
|
Loading…
Add table
Reference in a new issue