Graphics/Sprite: Fix sprites not initializing materials
This commit is contained in:
parent
e0db2e69f8
commit
1fad7606c7
|
|
@ -19,6 +19,8 @@ namespace Nz
|
||||||
m_size(64.f, 64.f),
|
m_size(64.f, 64.f),
|
||||||
m_origin(Nz::Vector3f::Zero())
|
m_origin(Nz::Vector3f::Zero())
|
||||||
{
|
{
|
||||||
|
ResetMaterials(1);
|
||||||
|
|
||||||
for (Color& color : m_cornerColor)
|
for (Color& color : m_cornerColor)
|
||||||
color = Color::White;
|
color = Color::White;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue