weston_surface: initialize pitch
authorJuan Zhao <juan.j.zhao@linux.intel.com>
Mon, 19 Mar 2012 17:48:46 +0000 (01:48 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 21 Mar 2012 02:43:56 +0000 (22:43 -0400)
commit46436618d862e60ed051a5b880c86bfd6ac073a2
tree5152904f6e33584d28a3af64628cb729ab213b41
parent027b962d8cc6d1de1ec2757f64ff78c12b80ddb3
weston_surface: initialize pitch

Initializing pitch to 1 to avoid xxx/pitch errors
This won't influence the valid texture coordinate calculation, because
 in that case buffer_attach will provide the correct value.
src/compositor.c