fixing inputs bug, fixing missing depth image destruction in scenes

This commit is contained in:
2024-10-17 18:35:33 +02:00
parent 160364bda2
commit d0a74e79c5
15 changed files with 104 additions and 108 deletions

View File

@@ -7,9 +7,7 @@ namespace mlx
{
Window::Window(std::size_t w, std::size_t h, const std::string& title, bool hidden) : m_width(w), m_height(h)
{
static std::uint64_t ids = 0;
p_window = SDLManager::Get().CreateWindow(title, w, h, hidden);
m_id = ids++;
p_window = SDLManager::Get().CreateWindow(title, w, h, hidden, m_id);
}
void Window::Destroy() noexcept