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

glGenVertexArrays causing segmentation fault #9

Open
barbw1re opened this issue Apr 3, 2019 · 0 comments
Open

glGenVertexArrays causing segmentation fault #9

barbw1re opened this issue Apr 3, 2019 · 0 comments

Comments

@barbw1re
Copy link

barbw1re commented Apr 3, 2019

Running on Linux, I was experiencing the application crashing with a segmentation fault.

This would occur when executing the call: glGenVertexArrays(1, &fullscreen_triangle_vao);

To fix this, I needed to set the global switch glewExperimental to GL_TRUE before initialising glew, eg:

glewExperimental = GL_TRUE;
GLenum err = glewInit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant