fixing segfault at exit

This commit is contained in:
2024-10-27 21:18:22 +01:00
parent dbf4d3cc5b
commit fed7111362
4 changed files with 9 additions and 2 deletions

View File

@@ -43,10 +43,10 @@ namespace mlx
Text& new_text = p_scene->CreateText(str);
new_text.SetPosition(Vec2f{ static_cast<float>(x), static_cast<float>(y) });
new_text.SetColor(std::move(vec_color));
if(m_pixelput_called)
// if(m_pixelput_called)
{
m_draw_layer++;
m_pixelput_called = false;
// m_pixelput_called = false;
}
}
else if(!p_scene->IsTextAtGivenDrawLayer(str, m_draw_layer))