re-adding render to texture

This commit is contained in:
2024-12-20 01:19:15 +01:00
parent 952e48a05c
commit 4e326db10d
7 changed files with 77 additions and 42 deletions

View File

@@ -67,7 +67,8 @@ namespace mlx
catch(...) { return nullptr; }
m_graphics.emplace_back(std::make_unique<GraphicsSupport>(info, m_graphics.size()));
m_in.RegisterWindow(m_graphics.back()->GetWindow());
if(m_graphics.back()->HasWindow())
m_in.RegisterWindow(m_graphics.back()->GetWindow());
m_graphics.back()->GetScene().BindFont(p_last_font_bound);
window->id = m_graphics.back()->GetID();
return window;