VertexBuffer should be disposable
This commit is contained in:
committed by
Matthias Mailänder
parent
90aeb38427
commit
7e9619b41b
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user