View Full Version : FBO problem

06-07-2007, 02:18 AM
when I run the nvidia SDK demo of the FBO, it works. But when I try to run the glew library, it exit:

if (!GLEW_EXT_framebuffer_object)
} Like that I don't support the FBO - but in the nvidia demo it works!!
Can anyone help me? I really need FBO!

06-07-2007, 02:34 AM
When I debug It say:

error symbol GLEW_EXT_framebuffer_object not found

Olivier B.
06-07-2007, 02:34 AM
Run glewinfo (bin directory of glew distrib) to see if your card support FBO.

if you have in generated text file

GL_EXT_framebuffer_object: OK
glBindFramebufferEXT: OK
glBindRenderbufferEXT: OK
glCheckFramebufferStatusEXT: OK
glDeleteFramebuffersEXT: OK
glDeleteRenderbuffersEXT: OK
glFramebufferRenderbufferEXT: OK
glFramebufferTexture1DEXT: OK
glFramebufferTexture2DEXT: OK
glFramebufferTexture3DEXT: OK
glGenFramebuffersEXT: OK
glGenRenderbuffersEXT: OK
glGenerateMipmapEXT: OK
glGetFramebufferAttachmentParameterivEXT: OK
glGetRenderbufferParameterivEXT: OK
glIsFramebufferEXT: OK
glIsRenderbufferEXT: OK
glRenderbufferStorageEXT: OK it's OK you can use FBO.

06-07-2007, 02:41 AM
thanks oliver, now i know that my card support it. but why it doesn't work?

Olivier B.
06-07-2007, 02:49 AM
Try with glewIsSupported("GL_EXT_framebuffer_object) instead of GLEW_EXT_framebuffer_object.
But if you know that your card support FBO don't run the test and normally it works.

06-07-2007, 02:56 AM
Right, but I want to run the test, because when I use FBO commands, like glgenframebuffersEXT, it compiles with no errors, but at runtime it crashes, with the access violation 0x000000 error..and I don't know why!

06-07-2007, 03:03 AM
with glewIsSupported("GL_EXT_framebuffer_object") instead of GLEW_EXT_framebuffer_object, it say that I don't support fbo..

So to include the glew I do this:

-add the glew32.lib to the library path
-include the glew.h and wglew.h

perhaps is this wrong?

06-07-2007, 03:25 AM
Stupid question: You did run glewInit () AFTER OpenGL Context creation?

If not, function-pointers are not initialized.


06-07-2007, 03:43 AM
yes I run it! and I found a stupid error in my control method ..uff! Thanks Jan! you save me