Dav1dde / glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.

Home Page:https://glad.dav1d.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to know why exactly GLAD failed.(ERROR DESCRIPTION)

ElsevarAsadov opened this issue · comments

Please consider i am newbie in cpp world.i have this code:

   if(! gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)){
       std::cout << "Failed to load GLAD." << std::endl;
       glfwTerminate();
       return -1;
    }

here whenever i did something wrong i get console log which i specified but is there a way to know what exactly happened why error occurs? because when program exists it just logs my message then i get this message in IDE

Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)

Are you sure this is coming from glad? It should never cause a segfault.

Make sure glfw and a gl context are fully initialized, you can follow the example.

Otherwise try to get a stack trace by using a debugger.