From 7f2826f192753fe451b042a959bb7c91693b05b1 Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 5 Oct 2018 19:53:35 +0200 Subject: [PATCH] Graphics/CullingList: Fix visibility hash being always the same, causing visibility issues --- include/Nazara/Graphics/CullingList.inl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/Nazara/Graphics/CullingList.inl b/include/Nazara/Graphics/CullingList.inl index 1230ce9e9..5e924d013 100644 --- a/include/Nazara/Graphics/CullingList.inl +++ b/include/Nazara/Graphics/CullingList.inl @@ -35,7 +35,7 @@ namespace Nz { case IntersectionSide_Inside: m_fullyVisibleResults.push_back(entry.renderable); - CombineHash(fullyVisibleHash, std::hash()(entry.renderable)); + fullyVisibleHash = CombineHash(fullyVisibleHash, std::hash()(entry.renderable)); forcedInvalidation = forcedInvalidation | entry.forceInvalidation; entry.forceInvalidation = false; @@ -43,7 +43,7 @@ namespace Nz case IntersectionSide_Intersecting: m_partiallyVisibleResults.push_back(entry.renderable); - CombineHash(partiallyVisibleHash, std::hash()(entry.renderable)); + partiallyVisibleHash = CombineHash(partiallyVisibleHash, std::hash()(entry.renderable)); forcedInvalidation = forcedInvalidation | entry.forceInvalidation; entry.forceInvalidation = false; @@ -72,7 +72,7 @@ namespace Nz { case IntersectionSide_Inside: m_fullyVisibleResults.push_back(entry.renderable); - CombineHash(fullyVisibleHash, std::hash()(entry.renderable)); + fullyVisibleHash = CombineHash(fullyVisibleHash, std::hash()(entry.renderable)); forcedInvalidation = forcedInvalidation | entry.forceInvalidation; entry.forceInvalidation = false; @@ -80,7 +80,7 @@ namespace Nz case IntersectionSide_Intersecting: m_partiallyVisibleResults.push_back(entry.renderable); - CombineHash(partiallyVisibleHash, std::hash()(entry.renderable)); + partiallyVisibleHash = CombineHash(partiallyVisibleHash, std::hash()(entry.renderable)); forcedInvalidation = forcedInvalidation | entry.forceInvalidation; entry.forceInvalidation = false; @@ -97,7 +97,7 @@ namespace Nz { case IntersectionSide_Inside: m_fullyVisibleResults.push_back(entry.renderable); - CombineHash(fullyVisibleHash, std::hash()(entry.renderable)); + fullyVisibleHash = CombineHash(fullyVisibleHash, std::hash()(entry.renderable)); forcedInvalidation = forcedInvalidation | entry.forceInvalidation; entry.forceInvalidation = false; @@ -105,7 +105,7 @@ namespace Nz case IntersectionSide_Intersecting: m_partiallyVisibleResults.push_back(entry.renderable); - CombineHash(partiallyVisibleHash, std::hash()(entry.renderable)); + partiallyVisibleHash = CombineHash(partiallyVisibleHash, std::hash()(entry.renderable)); forcedInvalidation = forcedInvalidation | entry.forceInvalidation; entry.forceInvalidation = false;