From 5774fcdd8001b9e15b417b765472245345e934fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 18 Nov 2016 09:34:41 +0800 Subject: [PATCH] MetaShapedTexture: Default to y-inverted being true Normally textures in OpenGL are inverted on the Y axis, and we only apply our rotation transform when it is not. To make the common case work as normal, default to assuming textures are Y inverted. https://bugzilla.gnome.org/show_bug.cgi?id=773629 --- src/compositor/meta-shaped-texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 7a9e6fadb..98346c6ae 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -133,6 +133,7 @@ meta_shaped_texture_init (MetaShapedTexture *self) priv->texture = NULL; priv->mask_texture = NULL; priv->create_mipmaps = TRUE; + priv->is_y_inverted = TRUE; } static void