diff options
2 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch new file mode 100755 index 0000000000..79ef4c81ab --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From 764fd69f8482eca9f925cefe72ebae090ae59d43 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Tue, 19 Apr 2016 19:27:33 +0300 | ||
4 | Subject: [PATCH 3/3] glcolorconvert: GLES3 deprecates texture2D() and it does | ||
5 | not work at all in newer versions than 3.3 | ||
6 | |||
7 | Use the newer texture() function instead. This fixes glimagesink and other | ||
8 | things on various Android devices. | ||
9 | |||
10 | Upstream-Status: Backport [1.9.1] | ||
11 | |||
12 | https://bugzilla.gnome.org/show_bug.cgi?id=765266 | ||
13 | --- | ||
14 | gst-libs/gst/gl/gstglcolorconvert.c | 7 ++++--- | ||
15 | 1 file changed, 4 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c | ||
18 | index c23624f..f472d5d 100644 | ||
19 | --- a/gst-libs/gst/gl/gstglcolorconvert.c | ||
20 | +++ b/gst-libs/gst/gl/gstglcolorconvert.c | ||
21 | @@ -1716,7 +1716,7 @@ _unbind_buffer (GstGLColorConvert * convert) | ||
22 | |||
23 | static gchar * | ||
24 | _mangle_texture_access (const gchar * str, GstGLTextureTarget from, | ||
25 | - GstGLTextureTarget to, GstGLAPI gl_api) | ||
26 | + GstGLTextureTarget to, GstGLAPI gl_api, guint gl_major, guint gl_minor) | ||
27 | { | ||
28 | const gchar *from_str = NULL, *to_str = NULL; | ||
29 | gchar *ret, *tmp; | ||
30 | @@ -1730,7 +1730,8 @@ _mangle_texture_access (const gchar * str, GstGLTextureTarget from, | ||
31 | if (from == GST_GL_TEXTURE_TARGET_EXTERNAL_OES) | ||
32 | from_str = "texture2D"; | ||
33 | |||
34 | - if (gl_api & GST_GL_API_OPENGL3) { | ||
35 | + if ((gl_api & GST_GL_API_OPENGL3) || (gl_api & GST_GL_API_GLES2 | ||
36 | + && gl_major >= 3)) { | ||
37 | to_str = "texture"; | ||
38 | } else { | ||
39 | if (to == GST_GL_TEXTURE_TARGET_2D) | ||
40 | @@ -1898,7 +1899,7 @@ _mangle_shader (const gchar * str, guint shader_type, GstGLTextureTarget from, | ||
41 | |||
42 | _mangle_version_profile_from_gl_api (gl_api, gl_major, gl_minor, version, | ||
43 | profile); | ||
44 | - tmp = _mangle_texture_access (str, from, to, gl_api); | ||
45 | + tmp = _mangle_texture_access (str, from, to, gl_api, gl_major, gl_minor); | ||
46 | tmp2 = _mangle_sampler_type (tmp, from, to); | ||
47 | g_free (tmp); | ||
48 | tmp = | ||
49 | -- | ||
50 | 1.9.1 | ||
51 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.2.bb index 825d100a11..49b3677ddf 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.2.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.2.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = " \ | |||
16 | file://0003-glcolorconvert-implement-multiple-render-targets-for.patch \ | 16 | file://0003-glcolorconvert-implement-multiple-render-targets-for.patch \ |
17 | file://0004-glcolorconvert-don-t-use-the-predefined-variable-nam.patch \ | 17 | file://0004-glcolorconvert-don-t-use-the-predefined-variable-nam.patch \ |
18 | file://0005-glshader-add-glBindFragDataLocation.patch \ | 18 | file://0005-glshader-add-glBindFragDataLocation.patch \ |
19 | file://0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch \ | ||
19 | " | 20 | " |
20 | SRC_URI[md5sum] = "83abc2e70684e7b195f18ca2992ef6e8" | 21 | SRC_URI[md5sum] = "83abc2e70684e7b195f18ca2992ef6e8" |
21 | SRC_URI[sha256sum] = "d7995317530c8773ec088f94d9320909d41da61996b801ebacce9a56af493f97" | 22 | SRC_URI[sha256sum] = "d7995317530c8773ec088f94d9320909d41da61996b801ebacce9a56af493f97" |