[291/906] Add check for GLEW_EXT_framebuffer_object

This commit is contained in:
David Schleef 2009-01-09 17:20:25 -08:00 committed by Matthew Waters
parent caccdc1ee8
commit b15277ba0b

View file

@ -1128,6 +1128,13 @@ gst_gl_display_thread_gen_fbo (GstGLDisplay *display)
//-- generate frame buffer object //-- generate frame buffer object
if (!GLEW_EXT_framebuffer_object) {
//turn off the pipeline because Frame buffer object is a not present
GST_WARNING ("Context, EXT_framebuffer_object supported: no");
display->isAlive = FALSE;
return;
}
//setup FBO //setup FBO
glGenFramebuffersEXT (1, &display->generated_fbo); glGenFramebuffersEXT (1, &display->generated_fbo);
glBindFramebufferEXT (GL_FRAMEBUFFER_EXT, display->generated_fbo); glBindFramebufferEXT (GL_FRAMEBUFFER_EXT, display->generated_fbo);