mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Simplified dispose function of DisposableComponents
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user