[mutter] MetaShapedTexture: Default to y-inverted being true
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaShapedTexture: Default to y-inverted being true
- Date: Fri, 18 Nov 2016 06:39:53 +0000 (UTC)
commit 5774fcdd8001b9e15b417b765472245345e934fb
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Nov 18 09:34:41 2016 +0800
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index 7a9e6fa..98346c6 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]