I’m migrating from glCopySubTex() to FBO.
I am not using GLUT.
I’m using GLEW and GLFW but all the examples I’ve seen of FBO use GLUT so it could be initialising something I’m not.
My includes are:
All compiles fine.
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?
static GLuint fbo;
glGenFramebuffers(1, fbo); // set-up fbo
Thanks for any help.