mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-25 02:52:06 +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;
|
break;
|
||||||
}
|
}
|
||||||
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
|
|
||||||
visit_leaf ((mleaf_t *) node);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -831,8 +831,6 @@ R_VisitWorldNodes (glslbspctx_t *bctx)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
|
|
||||||
visit_leaf ((mleaf_t *) node);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -513,8 +513,6 @@ R_VisitWorldNodes (swbspctx_t *bctx, int clipflags)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
|
|
||||||
visit_leaf ((mleaf_t *) node);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -746,8 +746,6 @@ R_VisitWorldNodes (mod_brush_t *brush, vulkan_ctx_t *ctx)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (node->contents < 0 && node->contents != CONTENTS_SOLID)
|
|
||||||
visit_leaf ((mleaf_t *) node);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue