From e41e98a12794789b215892aedd7f8f16c7d883d8 Mon Sep 17 00:00:00 2001 From: Haihua Hu Date: Mon, 1 Aug 2016 14:12:35 +0800 Subject: [PATCH] glimagesink: Fix horizontal/vertical flip matrizes They were swapped. https://bugzilla.gnome.org/show_bug.cgi?id=769371 --- ext/gl/gstglimagesink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 47314329f5..385e3e4b0c 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -468,16 +468,16 @@ static const gfloat counterclockwise_matrix[] = { /* horizontal-flip */ static const gfloat horizontal_flip_matrix[] = { - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, -1.0f, 0.0f, 0.0f, + -1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, }; /* vertical-flip */ static const gfloat vertical_flip_matrix[] = { - -1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, 1.0f, 0.0f, 0.0f, + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, };