kingc8
06-17-2010, 06:28 AM
Hello,
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:
#define GL_GLEXT_PROTOTYPES
#include <GL/glew.h>
#include <GL/glfw.h>
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[1];
...
glGenFramebuffers(1, fbo); // set-up fbo
Thanks for any help.
Cameron
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:
#define GL_GLEXT_PROTOTYPES
#include <GL/glew.h>
#include <GL/glfw.h>
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[1];
...
glGenFramebuffers(1, fbo); // set-up fbo
Thanks for any help.
Cameron