nobody wrote on Tuesday, August 22, 2006:

How should I use shaders in GLFW? I used GLEW with GLUT but this is not working anymore.

elmindreda wrote on Wednesday, August 23, 2006:

GLEW should work just fine in combination with GLFW. I’ve done so for quite a while on three platforms, with no special cases needed. Just remember to include glew.h BEFORE glfw.h and you should be set.

nobody wrote on Thursday, August 24, 2006:

Look at chapter 7 of the GLFW user’s guide. Everything you should need for extension suport is already there. You just need glext.h for the function prototypes.

nobody wrote on Thursday, August 24, 2006:

Now i fixed, I found that GLEW has a small bug i must initialize GLEW AFTER glcontext has been created, that means i can run glewInit after glfwOpenWindow has been called, not before, that was my mistake. Anyway, thanx for help.

elmindreda wrote on Thursday, August 24, 2006:

That’s not a bug; it’s by by design. GLEW does not provide a facility for creating a context (that’s the job of GLFW), and the capabilities of a given context cannot be queried before its creation.

Great to hear it’s working!