Correctly initialize m_colors and m_scales

This commit is contained in:
Shylie 2024-06-07 12:36:27 -04:00
parent d50fefc359
commit 996d14c93c

View File

@ -218,9 +218,9 @@ namespace glerminal
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;
}