Fix incorrect culling when drawing actors depth only

This commit is contained in:
2026-09-02 23:08:39 +02:00
parent c3a1312285
commit 280da1702b
6 changed files with 6 additions and 5 deletions
+1
View File
@@ -303,6 +303,7 @@ void Renderer::DrawSceneDepth(GPUContext* context, SceneRenderTask* task, GPUTex
RenderContext renderContext(task);
renderContext.List = RenderList::GetFromPool();
renderContext.View.Pass = DrawPass::Depth;
renderContext.View.Flags &= ~ViewFlags::OcclusionCulling;
renderContext.View.Prepare(renderContext);
// Call drawing (will collect draw calls)