mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Simplified dispose function of DisposableComponents
This commit is contained in:
@@ -40,12 +40,10 @@ namespace GlitchyEngine.World
|
||||
}
|
||||
}
|
||||
|
||||
public static void DisposeComponent(void* component)
|
||||
public void Dispose()
|
||||
{
|
||||
Self* meshRenderComponent = (Self*)component;
|
||||
|
||||
meshRenderComponent._material?.ReleaseRef();
|
||||
meshRenderComponent._skeleton?.ReleaseRef();
|
||||
_material?.ReleaseRef();
|
||||
_skeleton?.ReleaseRef();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user