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)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:28 +0000 (19:32 +0000)
commitea6bed111bab9b394d787f7760c6a3b953630d3a
treef63d6b30933c359f50b4e6e1027a00b729de1133
parent2fc05e90d86836b4464d0c3d5e7efb906b4964e2
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