mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2024-11-23 09:10:11 +00:00
Correctly initialize m_colors and m_scales
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