[renderer] Remove redundant calls to visit_leaf

I doubt the calls were ever actually made in a normal map due to the
node actually being a node when breaking out of the loop, but when I
experimented with an empty world model (no nodes, one infinite empty
leaf) I found that visit_leaf was getting called twice instead of once.
This commit is contained in:
Bill Currie 2022-04-26 07:14:03 +09:00
parent fddff1c24d
commit 98cbacfe9d
4 changed files with 0 additions and 8 deletions

View file

@ -712,8 +712,6 @@ R_VisitWorldNodes (glbspctx_t *bctx)
}
break;
}
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
visit_leaf ((mleaf_t *) node);
}
void

View file

@ -831,8 +831,6 @@ R_VisitWorldNodes (glslbspctx_t *bctx)
}
break;
}
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
visit_leaf ((mleaf_t *) node);
}
static void

View file

@ -513,8 +513,6 @@ R_VisitWorldNodes (swbspctx_t *bctx, int clipflags)
}
break;
}
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
visit_leaf ((mleaf_t *) node);
}
void

View file

@ -746,8 +746,6 @@ R_VisitWorldNodes (mod_brush_t *brush, vulkan_ctx_t *ctx)
}
break;
}
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
visit_leaf ((mleaf_t *) node);
}
static void