mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Meshes expose GraphicsBuffers, part 2
This commit is contained in:
@@ -82,7 +82,7 @@ void Polyline::render(const Vector2 *coords, size_t count, size_t size_hint, flo
|
||||
// extra degenerate triangle in between the core line and the overdraw
|
||||
// line in order to break up the strip into two. This will let us draw
|
||||
// everything in one draw call.
|
||||
if (triangle_mode == TriangleIndexMode::STRIP)
|
||||
if (triangle_mode == TRIANGLEINDEX_STRIP)
|
||||
extra_vertices = 2;
|
||||
}
|
||||
|
||||
@@ -383,7 +383,7 @@ void Polyline::draw(love::graphics::Graphics *gfx)
|
||||
int maxvertices = LOVE_UINT16_MAX - 3;
|
||||
|
||||
int advance = maxvertices;
|
||||
if (triangle_mode == TriangleIndexMode::STRIP)
|
||||
if (triangle_mode == TRIANGLEINDEX_STRIP)
|
||||
advance -= 2;
|
||||
|
||||
for (int vertex_start = 0; vertex_start < total_vertex_count; vertex_start += advance)
|
||||
|
||||
Reference in New Issue
Block a user