glformat: fix the usage of GST_GL_RGB565
authorHaihua Hu <jared.hu@nxp.com>
Thu, 25 May 2017 03:05:47 +0000 (11:05 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 25 May 2017 09:34:12 +0000 (12:34 +0300)
commitc2b2c68beaddbea0ec4fe7b099507cc492f6dd7c
tree1faea7f37503de6d415acf0fe2278d620df8e281
parent405d059a224b14c58c5ba0eada8aec849455c262
glformat: fix the usage of GST_GL_RGB565

GL_RGB565 is sized internal glformat, the corresponding glformat
should be GL_RGB and type is GL_UNSIGNED_SHORT_565. Otherwise will
return GL_INVALID_ENUM when creating texture.

https://bugzilla.gnome.org/show_bug.cgi?id=783066
gst-libs/gst/gl/gstglformat.c
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglmemorypbo.c
gst-libs/gst/gl/gstglrenderbuffer.c