Unload resources before destroying device.
This commit is contained in:
parent
92cf24fe9f
commit
6f505f34a9
@ -1,6 +1,6 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using Nerfed.Runtime.Video;
|
||||
using Nerfed.Runtime.Video;
|
||||
using RefreshCS;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Nerfed.Runtime.Graphics;
|
||||
|
||||
@ -372,6 +372,11 @@ private void Dispose(bool disposing)
|
||||
|
||||
resources.Clear();
|
||||
}
|
||||
|
||||
ResourceManager.Unload(FullscreenVertexShader);
|
||||
ResourceManager.Unload(TextFragmentShader);
|
||||
ResourceManager.Unload(TextVertexShader);
|
||||
ResourceManager.Unload(VideoFragmentShader);
|
||||
}
|
||||
|
||||
Refresh.Refresh_DestroyDevice(Handle);
|
||||
|
Loading…
Reference in New Issue
Block a user