add error callback for glfw

This commit is contained in:
2025-03-17 10:28:58 -05:00
parent 9a15793926
commit 663e9b575a

View File

@@ -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();