summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-09-03 05:00:42 +0200
committerMel <mel@rnrd.eu>2026-09-03 05:00:42 +0200
commit3af28453019a98b26f5c08ed49a6df633b36addb (patch)
treeaf322261d917c88229c47aa5532ec11e0200ea2e /src
parent2e6e51fe4a9d7160efdcfc6c9e0df601d0544fb8 (diff)
downloadmeowcraft-3af28453019a98b26f5c08ed49a6df633b36addb.tar.zst
meowcraft-3af28453019a98b26f5c08ed49a6df633b36addb.zip
Add support for AArch64 Linux
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'src')
-rw-r--r--src/GFX/Window.cpp5
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);