From 3af28453019a98b26f5c08ed49a6df633b36addb Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 3 Sep 2026 05:00:42 +0200 Subject: Add support for AArch64 Linux Signed-off-by: Mel --- src/GFX/Window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/GFX/Window.cpp b/src/GFX/Window.cpp index 5c391c8..75e7613 100644 --- a/src/GFX/Window.cpp +++ b/src/GFX/Window.cpp @@ -18,7 +18,10 @@ Window::Window(std::string const& title, U32 const width, U32 const height) { m_window = glfwCreateWindow(TO(I32, width), TO(I32, height), title.c_str(), nullptr, nullptr); if (m_window == nullptr) { - throw std::runtime_error("Failed to create window."); + Char const* error_description; + UInt error_code = glfwGetError(&error_description); + std::string error_string = "Failed to create window: " + std::string(error_description) + " (" + std::to_string(error_code) + ")"; + throw std::runtime_error(error_string); } glfwMakeContextCurrent(m_window); -- cgit v1.3.1