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>
Mon, 29 May 2017 07:51:40 +0000 (10:51 +0300)
commitff54f6d93053042b062a448f34128d97f99a45d0
tree1d5dbeac58024bb13723fc2fdeee63480a014fe7
parent1e3a3aed47e4a885479fdfa3b814a325366e4b6c
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