From 85a4f1042b63ddc59614dc5aa52546b9c2dd869b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Jul 2013 17:11:59 +0200 Subject: [PATCH] [755/906] gldownload: Unbind framebuffer after downloading RGB with GLES2 --- gst-libs/gst/gl/gstgldownload.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index eab7228bfb..16dc420eb3 100644 --- a/gst-libs/gst/gl/gstgldownload.c +++ b/gst-libs/gst/gl/gstgldownload.c @@ -1146,6 +1146,7 @@ _do_download_draw_rgb_gles2 (GstGLDisplay * display, GstGLDownload * download) out_width = GST_VIDEO_INFO_WIDTH (&download->info); out_height = GST_VIDEO_INFO_HEIGHT (&download->info); + gst_gl_display_check_framebuffer_status (display); gl->BindFramebuffer (GL_FRAMEBUFFER, download->fbo); gl->Viewport (0, 0, out_width, out_height); @@ -1196,6 +1197,10 @@ _do_download_draw_rgb_gles2 (GstGLDisplay * display, GstGLDownload * download) g_assert_not_reached (); break; } + + gst_gl_display_check_framebuffer_status (display); + + gl->BindFramebuffer (GL_FRAMEBUFFER, 0); } #endif