Sdk/GraphicsComponent: Fix clear method
This commit is contained in:
parent
72bcb1fda7
commit
71ee30d570
|
|
@ -55,8 +55,15 @@ namespace Ndk
|
||||||
|
|
||||||
inline void GraphicsComponent::Clear()
|
inline void GraphicsComponent::Clear()
|
||||||
{
|
{
|
||||||
|
m_materialEntries.clear();
|
||||||
m_renderables.clear();
|
m_renderables.clear();
|
||||||
|
|
||||||
|
if (m_reflectiveMaterialCount > 0)
|
||||||
|
{
|
||||||
|
m_reflectiveMaterialCount = 0;
|
||||||
|
InvalidateReflectionMap();
|
||||||
|
}
|
||||||
|
|
||||||
InvalidateBoundingVolume();
|
InvalidateBoundingVolume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue