mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-06-08 09:31:58 +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();
|
glPushMatrix();
|
||||||
|
|
||||||
glTranslatef(p->pos.x, p->pos.y,0);
|
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);
|
glRotatef(p->rot.z, 0, 0, 1);
|
||||||
|
|
||||||
if (flip)
|
if (flip)
|
||||||
glRotatef(180, 0, 1, 0);
|
glRotatef(180, 0, 1, 0);
|
||||||
|
|
||||||
|
glScalef(width * p->scale.x, height * p->scale.y, 0);
|
||||||
|
|
||||||
rquad->render(rs);
|
rquad->render(rs);
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
|
Loading…
Add table
Reference in a new issue