VertexBuffer should be disposable

This commit is contained in:
Gustas
2023-08-24 20:33:59 +03:00
committed by Matthias Mailänder
parent 90aeb38427
commit 7e9619b41b

View File

@@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
namespace OpenRA.Platforms.Default namespace OpenRA.Platforms.Default
{ {
sealed class VertexBuffer<T> : ThreadAffine, IVertexBuffer<T> sealed class VertexBuffer<T> : ThreadAffine, IDisposable, IVertexBuffer<T>
where T : struct where T : struct
{ {
static readonly int VertexSize = Marshal.SizeOf(typeof(T)); static readonly int VertexSize = Marshal.SizeOf(typeof(T));