Simplified dispose function of DisposableComponents

This commit is contained in:
Simon Lübeß
2021-12-30 16:52:13 +01:00
parent b3ab30e72a
commit b555cc37d1
7 changed files with 26 additions and 29 deletions
+2 -4
View File
@@ -19,11 +19,9 @@ namespace GlitchyEngine.Renderer
}
}
public static void DisposeComponent(void* component)
public void Dispose() mut
{
Self* self = (Self*)component;
ReleaseRefAndNullify!(self._mesh);
ReleaseRefAndNullify!(_mesh);
}
}
}