Cleanup: DRW: Remove unused legacy function
This commit is contained in:
@@ -228,16 +228,6 @@ void View::frustum_culling_sphere_calc(int view_id)
|
||||
}
|
||||
}
|
||||
|
||||
void View::disable(IndexRange range)
|
||||
{
|
||||
/* Set bounding sphere to -1.0f radius will bypass the culling test and treat every instance as
|
||||
* invisible. */
|
||||
range = IndexRange(view_len_).intersect(range);
|
||||
for (auto view_id : range) {
|
||||
reinterpret_cast<BoundSphere *>(&culling_[view_id].bound_sphere)->radius = -1.0f;
|
||||
}
|
||||
}
|
||||
|
||||
void View::bind()
|
||||
{
|
||||
if (dirty_ && !procedural_) {
|
||||
|
||||
@@ -73,9 +73,6 @@ class View {
|
||||
/* For compatibility with old system. Will be removed at some point. */
|
||||
void sync(const DRWView *view);
|
||||
|
||||
/** Disable a range in the multi-view array. Disabled view will not produce any instances. */
|
||||
void disable(IndexRange range);
|
||||
|
||||
/** Enable or disable every visibility test (frustum culling, HiZ culling). */
|
||||
void visibility_test(bool enable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user