mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
[291/906] Add check for GLEW_EXT_framebuffer_object
This commit is contained in:
parent
caccdc1ee8
commit
b15277ba0b
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue