Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 4d323d1

Browse files
authored
Update Line.cs
Line.Draw: Wrong dimension.
1 parent 9db5247 commit 4d323d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/SharpDX.Direct3D9/Line.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public void Draw<T>(T[] vertices, RawColorBGRA color) where T : struct
6262
{
6363
unsafe
6464
{
65-
if (Utilities.SizeOf<T>() != sizeof(RawVector3))
66-
throw new ArgumentException("Invalid size for T. Must be 3 floats (12 bytes)");
65+
if (Utilities.SizeOf<T>() != sizeof(RawVector2))
66+
throw new ArgumentException("Invalid size for T. Must be 2 floats (8 bytes)");
6767

6868
Draw((IntPtr)Interop.Fixed(vertices), vertices.Length, color);
6969
}
@@ -105,4 +105,4 @@ public void DrawTransform<T>(T[] vertices, RawMatrix transform, RawColorBGRA col
105105
}
106106
}
107107
}
108-
}
108+
}

0 commit comments

Comments
 (0)