mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
[755/906] gldownload: Unbind framebuffer after downloading RGB with GLES2
This commit is contained in:
parent
743ad83b06
commit
62f9105715
1 changed files with 5 additions and 0 deletions
|
@ -1146,6 +1146,7 @@ _do_download_draw_rgb_gles2 (GstGLDisplay * display, GstGLDownload * download)
|
||||||
out_width = GST_VIDEO_INFO_WIDTH (&download->info);
|
out_width = GST_VIDEO_INFO_WIDTH (&download->info);
|
||||||
out_height = GST_VIDEO_INFO_HEIGHT (&download->info);
|
out_height = GST_VIDEO_INFO_HEIGHT (&download->info);
|
||||||
|
|
||||||
|
gst_gl_display_check_framebuffer_status (display);
|
||||||
gl->BindFramebuffer (GL_FRAMEBUFFER, download->fbo);
|
gl->BindFramebuffer (GL_FRAMEBUFFER, download->fbo);
|
||||||
|
|
||||||
gl->Viewport (0, 0, out_width, out_height);
|
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 ();
|
g_assert_not_reached ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_gl_display_check_framebuffer_status (display);
|
||||||
|
|
||||||
|
gl->BindFramebuffer (GL_FRAMEBUFFER, 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue