Compare commits

...

2 Commits

Author SHA1 Message Date
max
91672d5760 Merge remote-tracking branch 'origin/main' into project 2024-07-21 22:34:32 +02:00
max
6f505f34a9 Unload resources before destroying device. 2024-07-20 00:45:16 +02:00

View File

@ -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 @@ public class GraphicsDevice : IDisposable
resources.Clear();
}
ResourceManager.Unload(FullscreenVertexShader);
ResourceManager.Unload(TextFragmentShader);
ResourceManager.Unload(TextVertexShader);
ResourceManager.Unload(VideoFragmentShader);
}
Refresh.Refresh_DestroyDevice(Handle);