update GLFW Error callback

This commit is contained in:
2026-02-02 14:20:40 -06:00
parent 6459d880c3
commit c069267c7e

View File

@@ -24,7 +24,7 @@ namespace Archimedes {
data.sendEvent = sendEvent;
glfwSetErrorCallback([](int e, const char* m){
std::cout << "GLFW Error: " << m << std::endl;
std::cout << "GLFW Error " << e << ": " << m << std::endl;
});
if(!glfwInit()) {
@@ -34,6 +34,7 @@ namespace Archimedes {
w = glfwCreateWindow(640, 480, "Archimedes", NULL, NULL);
if(!w) {
std::cout << "glfwCreateWindow failed!\n";
glfwTerminate();
std::abort();
}