Fix sort order usage in multi-pass drawing of the Mesh

This commit is contained in:
Wojtek Figat
2023-01-28 01:31:07 +01:00
parent adfe3ad165
commit 87549a3e6c
3 changed files with 2 additions and 4 deletions

View File

@@ -637,7 +637,7 @@ void RenderList::SortDrawCalls(const RenderContext& renderContext, bool reverseD
Sorting::QuickSort(list.Batches.Get(), list.Batches.Count());
}
bool CanUseInstancing(DrawPass pass)
FORCE_INLINE bool CanUseInstancing(DrawPass pass)
{
return pass == DrawPass::GBuffer || pass == DrawPass::Depth;
}