Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ElsevarAsadov opened this issue Apr 24, 2024 · 1 comment
Open

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

ElsevarAsadov opened this issue Apr 24, 2024 · 1 comment

Comments

@ElsevarAsadov
Copy link

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)

@Dav1dde
Copy link
Owner

Dav1dde commented Apr 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants