glmemory: Use glBlitFramebuffer() instead of glCopyTexImage2D() if available
authorSebastian Dröge <sebastian@centricular.com>
Wed, 22 Feb 2017 12:09:45 +0000 (14:09 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:26 +0000 (19:32 +0000)
commita6cbe2a2cbfe7aeb7a2ea1a412d085812fda35a3
tree04288914ef929e01286b4872af491cf21392dedc
parent48f79e9f6067af3e20289cb71130b8d177101581
glmemory: Use glBlitFramebuffer() instead of glCopyTexImage2D() if available

glBlitFramebuffer() is new GLES3/GL3 API. They are probably often
implemented in terms of each other, and glBlitFramebuffer() can
potentially be implemented more flexible. Let's use it if available.

Also it actually works on imx6 with DirectVIV textures.

Based on a patch by Haihua Hu <jared.hu@nxp.com> from
https://github.com/Freescale/meta-freescale/blob/master/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/

https://bugzilla.gnome.org/show_bug.cgi?id=779070
gst-libs/gst/gl/glprototypes/fbo.h
gst-libs/gst/gl/gstglmemory.c