compositor: fix pitch initialization
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.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
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 @@
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;