2
0
Эх сурвалжийг харах

Correct the minimum Z if no geometries at all.

Lasse Öörni 13 жил өмнө
parent
commit
092c6e5bb5

+ 3 - 0
Engine/Graphics/View.cpp

@@ -660,6 +660,9 @@ void View::GetDrawables()
         }
     }
     
+    if (minZ_ == M_INFINITY)
+        minZ_ = 0.0f;
+    
     // Sort the lights to brightest/closest first
     for (unsigned i = 0; i < lights_.Size(); ++i)
     {