Correctly initialize m_colors and m_scales
All checks were successful
Make PNG / build-app (push) Successful in 54s
All checks were successful
Make PNG / build-app (push) Successful in 54s
This commit is contained in:
parent
d50fefc359
commit
996d14c93c
@ -218,9 +218,9 @@ namespace glerminal
|
|||||||
throw std::runtime_error("No main callback provided.");
|
throw std::runtime_error("No main callback provided.");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < LAYER_COUNT; i++)
|
for (int i = 0; i < GRID_AREA * LAYER_COUNT; i++)
|
||||||
{
|
{
|
||||||
m_colors[i * 4 + 0] = m_colors[i * 4 + 1] = m_colors[i * 4 + 2] = m_colors[i * 4 + 3] = 1;
|
m_colors[i * 4 + 0] = m_colors[i * 4 + 1] = m_colors[i * 4 + 2] = m_colors[i * 4 + 3] = 255;
|
||||||
m_scales[i] = 1;
|
m_scales[i] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user