[PATCH] compositor: fix pitch initialization

Tiago Vignatti tiago.vignatti at intel.com
Fri Aug 19 05:10:40 PDT 2011


texture_region was getting a trash value for computing. I don't
understand how we couldn't see any artifact on surface output in such
case. Nevertheless, this is fixed with this patch and I guess we may
want to drop pitch field from the structure, because it's being
suppressed by the width one which seems interchangeably used everywhere
there.

Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 compositor/compositor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/compositor/compositor.c b/compositor/compositor.c
index 2b88440..b2342b4 100644
--- a/compositor/compositor.c
+++ b/compositor/compositor.c
@@ -754,6 +754,7 @@ fade_output(struct wlsc_output *output,
 	surface.compositor = compositor;
 	surface.x = output->x;
 	surface.y = output->y;
+	surface.pitch = output->current->width;
 	surface.width = output->current->width;
 	surface.height = output->current->height;
 	surface.texture = GL_NONE;
-- 
1.7.2.2



More information about the wayland-devel mailing list