Fix CA2263

This commit is contained in:
RoosterDragon
2024-11-13 19:03:26 +00:00
committed by Pavel Penev
parent 332ab244a7
commit e2296ad2d1
6 changed files with 8 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Platforms.Default
sealed class VertexBuffer<T> : ThreadAffine, IDisposable, IVertexBuffer<T>
where T : struct
{
static readonly int VertexSize = Marshal.SizeOf(typeof(T));
static readonly int VertexSize = Marshal.SizeOf<T>();
uint buffer;
bool disposed;