Core: Make Color constexpr
This commit is contained in:
@@ -228,7 +228,7 @@ namespace Nz
|
||||
if (auto colorPtr = vertexMapper.GetComponentPtr<Color>(VertexComponent::Color))
|
||||
{
|
||||
for (UInt32 v = 0; v < header.num_vertices; ++v)
|
||||
*colorPtr++ = Color::White;
|
||||
*colorPtr++ = Color::White();
|
||||
}
|
||||
|
||||
vertexMapper.Unmap();
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace Nz
|
||||
if (auto colorPtr = vertexMapper.GetComponentPtr<Color>(VertexComponent::Color))
|
||||
{
|
||||
for (std::size_t j = 0; j < md5Mesh.vertices.size(); ++j)
|
||||
*colorPtr++ = Color::White;
|
||||
*colorPtr++ = Color::White();
|
||||
}
|
||||
|
||||
vertexMapper.Unmap();
|
||||
@@ -316,7 +316,7 @@ namespace Nz
|
||||
if (auto colorPtr = vertexMapper.GetComponentPtr<Color>(VertexComponent::Color))
|
||||
{
|
||||
for (std::size_t j = 0; j < md5Mesh.vertices.size(); ++j)
|
||||
*colorPtr++ = Color::White;
|
||||
*colorPtr++ = Color::White();
|
||||
}
|
||||
|
||||
vertexMapper.Unmap();
|
||||
|
||||
@@ -313,7 +313,7 @@ namespace Nz
|
||||
if (auto colorPtr = vertexMapper.GetComponentPtr<Color>(VertexComponent::Color))
|
||||
{
|
||||
for (UInt32 j = 0; j < vertexCount; ++j)
|
||||
colorPtr[j] = Color::White;
|
||||
colorPtr[j] = Color::White();
|
||||
}
|
||||
|
||||
vertexMapper.Unmap();
|
||||
|
||||
Reference in New Issue
Block a user