Skip to content

Commit

Permalink
fix buffer creation
Browse files Browse the repository at this point in the history
  • Loading branch information
LeNitrous committed Jun 30, 2023
1 parent 640f65e commit 1eed081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/SampleGame/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public override void Load()
new(0.0f, 0.5f),
};

vbo = Graphics.CreateBuffer(BufferType.Vertex, vertices);
vbo = Graphics.CreateBuffer<Vector2>(BufferType.Vertex, (uint)vertices.Length);
vbo.SetData(vertices);

layout = Graphics.CreateInputLayout
(
Expand Down

0 comments on commit 1eed081

Please sign in to comment.