Graphics: Set default sprites size to the base color texture size, if any
This commit is contained in:
@@ -16,10 +16,10 @@ namespace Nz
|
||||
m_material(std::move(material)),
|
||||
m_color(Color::White()),
|
||||
m_textureCoords(0.f, 0.f, 1.f, 1.f),
|
||||
m_origin(0.f, 0.f),
|
||||
m_size(64.f, 64.f)
|
||||
m_origin(0.f, 0.f)
|
||||
{
|
||||
m_cornerColor.fill(Color::White());
|
||||
m_size = Vector2f(Vector2ui(GetTextureSize()));
|
||||
|
||||
UpdateVertices();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user