properly dispose everything when disposing the imgui resource cache
This commit is contained in:
parent
3716a65638
commit
efee5f0cb3
|
@ -76,9 +76,10 @@ namespace BizHawk.Bizware.Graphics
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var cachedTexture in TextureCache.Values)
|
||||
foreach (var cache in TextureCache)
|
||||
{
|
||||
cachedTexture.Dispose();
|
||||
cache.Key.Dispose();
|
||||
cache.Value.Dispose();
|
||||
}
|
||||
|
||||
foreach (var cachedBrush in BrushCache.Values)
|
||||
|
|
Loading…
Reference in New Issue