mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
glframebuffer: check frame buffer status need use specific fbo target
https://bugzilla.gnome.org/show_bug.cgi?id=783065
This commit is contained in:
parent
fdb2784491
commit
cbcd0a12b6
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ QtGLWindow::afterRendering()
|
|||
|
||||
gl->BindFramebuffer (GL_READ_FRAMEBUFFER, this->source->renderTargetId());
|
||||
|
||||
ret = gst_gl_context_check_framebuffer_status (context);
|
||||
ret = gst_gl_context_check_framebuffer_status (context, GL_READ_FRAMEBUFFER);
|
||||
if (!ret) {
|
||||
GST_ERROR ("FBO errors");
|
||||
goto errors;
|
||||
|
@ -233,7 +233,7 @@ QtGLWindow::afterRendering()
|
|||
gl->FramebufferTexture2D (GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
|
||||
GL_TEXTURE_2D, dst_tex, 0);
|
||||
|
||||
ret = gst_gl_context_check_framebuffer_status (context);
|
||||
ret = gst_gl_context_check_framebuffer_status (context, GL_DRAW_FRAMEBUFFER);
|
||||
if (!ret) {
|
||||
GST_ERROR ("FBO errors");
|
||||
goto errors;
|
||||
|
|
Loading…
Reference in a new issue