Can I use GLFW and GLEW together in the same code

Posted by Brendan Webster on Game Development See other posts from Game Development or by Brendan Webster
Published on 2012-08-12T23:46:41Z Indexed on 2012/09/21 21:57 UTC
Read the original article Hit count: 433

Filed under:

I use the g++ compiler, which could be causing the main problem, but I'm using GLFW for window and input management, and I am using GLEW so that I can use OpenGL 3.x functionality. I loaded in models and then tried to make Vertex and Index buffers for the data, but it turned out that I kept getting segmentation faults in the program. I finally figured out that GLEW just wasn't working with GLFW included. Do they not work together?

Also I've done the context creation through GLFW so that may be another factor in the problem.

© Game Development or respective owner

Related posts about opengl