But it crashes on the attempt to generate the framebuffer object. Google tells me its because the FBO isn’t initialised properly, but I expected GLEW to do that for me. Why is it crashing?
Make sure you’re extensions are properly loaded. If you print out glGenFramebuffers itself, you’ll probably see it’s zero instead of some position in memory you’d expect. It’s because glGenFramebuffers itself hasn’t been initialized.