Sdk/GraphicsComponent: Fix clear method

This commit is contained in:
Lynix
2017-11-28 23:21:11 +01:00
parent 72bcb1fda7
commit 71ee30d570

View File

@@ -55,8 +55,15 @@ namespace Ndk
inline void GraphicsComponent::Clear()
{
m_materialEntries.clear();
m_renderables.clear();
if (m_reflectiveMaterialCount > 0)
{
m_reflectiveMaterialCount = 0;
InvalidateReflectionMap();
}
InvalidateBoundingVolume();
}