From b8442dd6ab0ec52dc0fad81450749531a7783cd2 Mon Sep 17 00:00:00 2001 From: Daniel Klamt Date: Wed, 25 Apr 2018 16:36:21 +0200 Subject: [PATCH] glvideomixer: Moves the objects to zero on z axis Matches the output from a similar glimagesink pipeline when rotating from an upstream gltransformation passed through the affine transformation meta with xpos/ypos being set. https://bugzilla.gnome.org/show_bug.cgi?id=794401 --- ext/gl/gstglvideomixer.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index 68f74edab9..fe7915ce7b 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -1272,10 +1272,10 @@ _draw_checker_background (GstGLVideoMixer * video_mixer) /* *INDENT-OFF* */ gfloat v_vertices[] = { - -1.0,-1.0,-1.0f, - 1.0,-1.0,-1.0f, - 1.0, 1.0,-1.0f, - -1.0, 1.0,-1.0f, + -1.0,-1.0, 0.0f, + 1.0,-1.0, 0.0f, + 1.0, 1.0, 0.0f, + -1.0, 1.0, 0.0f, }; /* *INDENT-ON* */ @@ -1513,10 +1513,10 @@ gst_gl_video_mixer_callback (gpointer stuff) /* *INDENT-OFF* */ gfloat v_vertices[] = { - -1.0,-1.0,-1.0f, 0.0f, 0.0f, - 1.0,-1.0,-1.0f, 1.0f, 0.0f, - 1.0, 1.0,-1.0f, 1.0f, 1.0f, - -1.0, 1.0,-1.0f, 0.0f, 1.0f, + -1.0,-1.0, 0.0f, 0.0f, 0.0f, + 1.0,-1.0, 0.0f, 1.0f, 0.0f, + 1.0, 1.0, 0.0f, 1.0f, 1.0f, + -1.0, 1.0, 0.0f, 0.0f, 1.0f, }; /* *INDENT-ON* */