Sdk/GraphicsComponent: Fix clear method
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user