mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[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:
parent
fddff1c24d
commit
98cbacfe9d
4 changed files with 0 additions and 8 deletions
|
@ -712,8 +712,6 @@ R_VisitWorldNodes (glbspctx_t *bctx)
|
|||
}
|
||||
break;
|
||||
}
|
||||
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
|
||||
visit_leaf ((mleaf_t *) node);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue