mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Use sf::VertexArray.clear instead of .resize(0)
This commit is contained in:
parent
ecb945b341
commit
cfc43f50a7
@ -203,8 +203,8 @@ void Shape::update()
|
|||||||
const std::size_t count = getPointCount();
|
const std::size_t count = getPointCount();
|
||||||
if (count < 3)
|
if (count < 3)
|
||||||
{
|
{
|
||||||
m_vertices.resize(0);
|
m_vertices.clear();
|
||||||
m_outlineVertices.resize(0);
|
m_outlineVertices.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user