From 663e9b575a36d4cd21eafb16844ee22ca8e0cd63 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 17 Mar 2025 10:28:58 -0500 Subject: [PATCH] add error callback for glfw --- modules/Window/src/WindowImpl/GLFW/windowGLFW.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/Window/src/WindowImpl/GLFW/windowGLFW.cpp b/modules/Window/src/WindowImpl/GLFW/windowGLFW.cpp index 9ca0224..f654359 100644 --- a/modules/Window/src/WindowImpl/GLFW/windowGLFW.cpp +++ b/modules/Window/src/WindowImpl/GLFW/windowGLFW.cpp @@ -3,6 +3,10 @@ Window::Window() { + + glfwSetErrorCallback([](int e, const char* m){ + std::cout << "GLFW Error: " << m << std::endl; + }); if(!glfwInit()) { std::cout << "glfwInit failed!\n"; std::abort();