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>
This commit is contained in:
Tiago Vignatti 2011-08-19 15:10:40 +03:00 committed by Kristian Høgsberg
parent d9c8250955
commit 2cc8b87310

View 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;