x11: fix alignment in non-XSHM case
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Aug 2012 14:58:47 +0000 (16:58 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Aug 2012 14:58:47 +0000 (16:58 +0200)
commit9b3849db1ccf4f6b985d8fd1eeb0913ae44bc6be
tree01a69f1162544671c71fe92c1ad4e17981bd520f
parentda4884a8341fa32ed4a31bb939e286f6d024af0a
x11: fix alignment in non-XSHM case

Align the allocated memory to 16 bytes. When doing XSHM we are already aligned
to a page boundary but without, we use plain g_malloc, which could allocate
aligned on 8 bytes only.

See https://bugzilla.gnome.org/show_bug.cgi?id=680796
sys/ximage/ximagepool.c
sys/xvimage/xvimagepool.c