mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix for box2d path creation.
This commit is contained in:
parent
bbd620c1cf
commit
e4e58adc83
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ static void createPath (Path& p, const b2Vec2* vertices, int32 vertexCount)
|
|||
|
||||
for (int i = 1; i < vertexCount; ++i)
|
||||
p.lineTo (vertices[i].x, vertices[i].y);
|
||||
|
||||
p.closeSubPath();
|
||||
}
|
||||
|
||||
void Box2DRenderer::DrawPolygon (const b2Vec2* vertices, int32 vertexCount, const b2Color& color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue