add error callback for glfw
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
|
|
||||||
Window::Window() {
|
Window::Window() {
|
||||||
|
|
||||||
|
glfwSetErrorCallback([](int e, const char* m){
|
||||||
|
std::cout << "GLFW Error: " << m << std::endl;
|
||||||
|
});
|
||||||
if(!glfwInit()) {
|
if(!glfwInit()) {
|
||||||
std::cout << "glfwInit failed!\n";
|
std::cout << "glfwInit failed!\n";
|
||||||
std::abort();
|
std::abort();
|
||||||
|
|||||||
Reference in New Issue
Block a user