mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Actually bind VAO instead of relying on luck
This commit is contained in:
@@ -419,6 +419,7 @@ namespace SS14.Client.Graphics
|
||||
}
|
||||
}
|
||||
|
||||
GL.BindVertexArray(BatchVAO.Handle);
|
||||
GL.BufferSubData(BufferTarget.ArrayBuffer, IntPtr.Zero, quadIndex * 4 * Vertex2D.SizeOf, BatchVertexData);
|
||||
GL.BufferSubData(BufferTarget.ElementArrayBuffer, IntPtr.Zero, quadIndex * sizeof(ushort) * 5,
|
||||
BatchIndexData);
|
||||
|
||||
@@ -409,6 +409,11 @@ namespace SS14.Client.Graphics
|
||||
: this(position, new Vector2(u, v))
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Vertex2D: {Position}, {TextureCoordinates}";
|
||||
}
|
||||
}
|
||||
|
||||
// Go through the commit log if you wanna find why this struct exists.
|
||||
|
||||
Reference in New Issue
Block a user