mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-25 03:55:52 -05:00
Merge pull request #2211 from tsgcpp/feature/dispose_texture_cache_in_texturefactroy
TextureFactoryにて所有権が譲渡されていないTextureを破棄する
This commit is contained in:
@@ -36,6 +36,10 @@ namespace VRMShaders
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var (k, v) in _textureCache)
|
||||
{
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(v);
|
||||
}
|
||||
_textureCache.Clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user