1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-04 10:34:01 +00:00

correct rendering entities that have no skel

This commit is contained in:
fgenesis 2022-05-25 21:18:55 +02:00
parent f91d66a0e0
commit 4e9e0acb4a

View file

@ -560,7 +560,9 @@ void RenderObject::renderCall(const RenderState& rs) const
(*i)->render(rs);
}
if (rs.pass == RENDER_ALL || rs.pass == renderPass)
const int effectivePass = renderPass == RENDER_ALL ? rs.pass : renderPass;
if (rs.pass == RENDER_ALL || rs.pass == effectivePass)
{
if (texture)
{