compositor: fix pitch initialization
authorTiago Vignatti <tiago.vignatti@intel.com>
Fri, 19 Aug 2011 12:10:40 +0000 (15:10 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 19 Aug 2011 14:55:33 +0000 (10:55 -0400)
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>
compositor/compositor.c

index 2b88440..b2342b4 100644 (file)
@@ -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;