1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 06:41:08 +00:00

Merge branch 'well-that-was-really-dumb' into 'master'

Actually use the plane distances we just computed

Closes #7844

See merge request OpenMW/openmw!3898
This commit is contained in:
psi29a 2024-02-23 08:14:55 +00:00
commit f307e7acc7

View File

@ -95,6 +95,8 @@ namespace MWRender
{
// Other objects are likely cheaper and should let us skip all but a few groundcover instances
cullVisitor.computeNearPlane();
computedZNear = cullVisitor.getCalculatedNearPlane();
computedZFar = cullVisitor.getCalculatedFarPlane();
if (dNear < computedZNear)
{