projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a388873
)
gl/format: use the unsized format for RGB on GLES2
author
Matthew Waters
<matthew@centricular.com>
Fri, 16 Dec 2016 14:00:00 +0000
(
01:00
+1100)
committer
Matthew Waters
<matthew@centricular.com>
Fri, 16 Dec 2016 14:13:44 +0000
(
01:13
+1100)
In GLES2 GL_RGB8 doesn't exist so we cannot use it, use GL_RGB
instead.
https://bugzilla.gnome.org/show_bug.cgi?id=776141
gst-libs/gst/gl/gstglformat.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglformat.c
b/gst-libs/gst/gl/gstglformat.c
index
d64c05d
..
ead990b
100644
(file)
--- a/
gst-libs/gst/gl/gstglformat.c
+++ b/
gst-libs/gst/gl/gstglformat.c
@@
-277,7
+277,8
@@
gst_gl_sized_gl_format_from_gl_format_type (GstGLContext * context,
case GST_GL_RGB:
switch (type) {
case GL_UNSIGNED_BYTE:
- return GST_GL_RGB8;
+ return USING_GLES2 (context)
+ && !USING_GLES3 (context) ? GST_GL_RGB : GST_GL_RGB8;
break;
case GL_UNSIGNED_SHORT_5_6_5:
return GST_GL_RGB;