mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
[208/906] fix upload AYUV, regression during the 2 last commits
This commit is contained in:
parent
ddf4cdd2df
commit
a0cd1d279f
1 changed files with 3 additions and 0 deletions
|
@ -2327,6 +2327,9 @@ void gst_gl_display_thread_do_upload_make (GstGLDisplay *display)
|
|||
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, display->upload_intex);
|
||||
switch (display->upload_video_format)
|
||||
{
|
||||
case GST_VIDEO_FORMAT_AYUV:
|
||||
glTexImage2D (GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGBA,
|
||||
width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
||||
case GST_VIDEO_FORMAT_YUY2:
|
||||
glTexImage2D (GL_TEXTURE_RECTANGLE_ARB, 0, GL_LUMINANCE_ALPHA,
|
||||
width, height,
|
||||
|
|
Loading…
Reference in a new issue