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:
parent
f91d66a0e0
commit
4e9e0acb4a
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue