diff options
| author | Mel <mel@rnrd.eu> | 2026-09-03 05:00:42 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-09-03 05:00:42 +0200 |
| commit | 3af28453019a98b26f5c08ed49a6df633b36addb (patch) | |
| tree | af322261d917c88229c47aa5532ec11e0200ea2e /src/GFX/Window.cpp | |
| parent | 2e6e51fe4a9d7160efdcfc6c9e0df601d0544fb8 (diff) | |
| download | meowcraft-3af28453019a98b26f5c08ed49a6df633b36addb.tar.zst meowcraft-3af28453019a98b26f5c08ed49a6df633b36addb.zip | |
Add support for AArch64 Linux
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'src/GFX/Window.cpp')
| -rw-r--r-- | src/GFX/Window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
