Fixed index buffer
This commit is contained in:
1 parent
05ea5649a2
commit
f31fdd4668
1 file changed
+1
-1
@@ -471,7 +471,7 @@ namespace Vocaluxe.Lib.Draw
|
||||
indices[4] = 2;
|
||||
indices[5] = 3;
|
||||
|
||||
_IndexBuffer = new IndexBuffer(_Device, 6 * sizeof(int), Usage.WriteOnly, Pool.Managed, true);
|
||||
_IndexBuffer = new IndexBuffer(_Device, 6 * sizeof(Int16), Usage.WriteOnly, Pool.Managed, true);
|
||||
|
||||
DataStream stream = _IndexBuffer.Lock(0, 0, LockFlags.None);
|
||||
stream.WriteRange(indices);
|
||||
|
||||
Reference in new issue
Block a user