update GLFW Error callback
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Archimedes {
|
|||||||
data.sendEvent = sendEvent;
|
data.sendEvent = sendEvent;
|
||||||
|
|
||||||
glfwSetErrorCallback([](int e, const char* m){
|
glfwSetErrorCallback([](int e, const char* m){
|
||||||
std::cout << "GLFW Error: " << m << std::endl;
|
std::cout << "GLFW Error " << e << ": " << m << std::endl;
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!glfwInit()) {
|
if(!glfwInit()) {
|
||||||
@@ -34,6 +34,7 @@ namespace Archimedes {
|
|||||||
w = glfwCreateWindow(640, 480, "Archimedes", NULL, NULL);
|
w = glfwCreateWindow(640, 480, "Archimedes", NULL, NULL);
|
||||||
|
|
||||||
if(!w) {
|
if(!w) {
|
||||||
|
std::cout << "glfwCreateWindow failed!\n";
|
||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user