mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Merge branch '12.0-development' into GraphicsBuffer
This commit is contained in:
@@ -390,13 +390,13 @@ void Polyline::draw(love::graphics::Graphics *gfx)
|
||||
{
|
||||
const Vector2 *verts = vertices + vertex_start;
|
||||
|
||||
Graphics::StreamDrawCommand cmd;
|
||||
Graphics::BatchedDrawCommand cmd;
|
||||
cmd.formats[0] = getSinglePositionFormat(is2D);
|
||||
cmd.formats[1] = CommonFormat::RGBAub;
|
||||
cmd.indexMode = triangle_mode;
|
||||
cmd.vertexCount = std::min(maxvertices, total_vertex_count - vertex_start);
|
||||
|
||||
Graphics::StreamVertexData data = gfx->requestStreamDraw(cmd);
|
||||
Graphics::BatchedVertexData data = gfx->requestBatchedDraw(cmd);
|
||||
|
||||
if (is2D)
|
||||
t.transformXY((Vector2 *) data.stream[0], verts, cmd.vertexCount);
|
||||
|
||||
Reference in New Issue
Block a user